openapi-typescript
openapi-typescript copied to clipboard
Generate TypeScript types from OpenAPI 3 specs
Thank you for the great project @drwpow ! I am trying to migrate to the v7, I only noticed an issue with **nullable enums**. When I run `npx -y openapi-typescript@next...
### 🗣️ Description I want automatic deserialization + serialization of custom formats; particularly, `Date` values. Currently, I get nice type signatures for requests, and for response bodies; however those types...
**Description** Given the following example API routes: - GET `/objects/${object_id}` - GET `/objects/${object_id}/some-route` Running `openapi-typescript` with `--path-params-as-types` enabled will result in a TypeScript definition that throws the following error: ```...
**Description** **Proposal** I suggest adding an option that would determine whether non-required object properties get turned into: ```ts someProperty?: string; ``` or ```ts someProperty: string | undefined; ``` The latter...
**Description** I'd like to be able to omit schema objects from generated types. Use case: My project has a plugin type system that results in additional schema objects being added...
**Description** Having a self referential type like... ```json "Json": { "anyOf": [ { "type": "string" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "properties": {}, "additionalProperties":...
**Description** Firstly, big thanks for creating this project @drwpow! Solved lot of my pain points. `--path-params-as-types` doesn't work because `pathItemObject` in `transformPathsObject` is an object made up of HTTP methods...
## Changes This is a follow up of the workaround merged in this PR https://github.com/drwpow/openapi-typescript/pull/1597 Here the point is to infer the content type from the `Accept` header on each...
**Description** First of all, I want to thank you for this great lib! :) To make it even better, I suggest exporting component types and paths like open-api-generator does. **Proposal**...
**Preamble** Thank you for your work on this project, keep up the good work! **Description** A wrong type is generated when using a `$ref` from `schemas` that contains a `discriminator`...