openapi-typescript
openapi-typescript copied to clipboard
Generate TypeScript types from OpenAPI 3 specs
**Description** Hi! Unsure if this is the right place but figured I'll have to start somewhere. I'm trying to pass a custom `fetch` function, `useRequestFetch`, so that cookies are passed...
**Description** Discriminator + Enums does not work, there are a few problems. | Name | Version | | :------------------- | :--------------------------- | | `openapi-typescript` | `7.0.0-rc.0` | | Node.js |...
**Description** Here's a very basic example ```YAML openapi: 3.0.0 components: schemas: A: oneOf: - $ref: '#/components/schemas/C' - $ref: '#/components/schemas/D' discriminator: propertyName: pet_type mapping: c: '#/components/schemas/C' d: '#/components/schemas/D' B: allOf: -...
**Description** Currently when a request fails it fills the error property and leaves the data property undefined. It would be a very nice feature if you could throw an error...
## Changes Adds support for getting a react query key in the same format this library generates the keys Fixes #1898 ## How to Review _How can a reviewer review...
## Changes Fixes #1807. Instead of adding a dedicated `useQueries` function I would like propose a general query builder solution, this way not only `useQueries`, but all similar functions are...
**Description** I was writing composable unit test in my Vue application. The composable import a openapi-fetch client to make API request. The test uses [msw](https://mswjs.io/docs/) to intercept requests and respond...
## Changes Add support for `patternProperties` in addition to `additionalProperties` (#754). ## How to Review Overall approach so far only. ## Checklist - [ ] Unit tests updated - [...
**Description** When invoking openapi-typescript with a custom redocly config, as documented [here](https://openapi-ts.dev/cli#multiple-schemas), it just runs forever without doing anything. There is no error message. | Name | Version | |...
## Changes refs #604 To support readOnly / writeOnly properties, I tried to generate a magic object type `{$read: T} | {$write: T}` and resolve the type with `Readable` and...