openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
When generating typescript objects for such configuration getting error on lint check. ``` Type error: Type alias ‘CardPaymentMethod’ circularly references itself. 4 | /* eslint-disable */ 5 | import type...
Closes #1834 See the issue above for a description of a usecase where support for the [`const` keyword](https://json-schema.org/understanding-json-schema/reference/const) is useful. Updated the snapshot tests to verify correct output.
When we use a get ```/apples/:id``` and a get all ```/apples/``` the second one listed in the schema will turn into apples1 function in the generated code. isnt the openapi...
Hello, I have a swagger document that is generated on the server. And it adds operationId as uuid to each requst. So in the generated service i have all the...
**Describe the bug** Using `oneOf` and `properties` treats properties as another oneOf case, instead of merging these fields in. ``` "ComposedSchema": { "type": "object", "oneOf": [ { "type": "object", "required":...
Adds a CLI parameter `--useOperationId`, which allows using or ignoring OperationId in the swagger and relies on the path to generate operation names. Use path placeholders to decorate operation names....
This replaces regexp patterns that only worked with ascii characters with more proper matching that supports unicode identifiers in typescript/javascript. So that the generated code can have valid unicode characters...
npm install openapi-typescript-codegen --save-dev npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: [email protected] npm WARN Found: [email protected] npm WARN node_modules/react npm WARN peer react@">=16.0.0" from @ant-design/[email protected] npm WARN...
Since [NextJS fetch](https://beta.nextjs.org/docs/api-reference/fetch) has been introduced. There is no way yet for the generated code to input the `cache` and `next.revalidate` fetch's options.
Would it be possible to add support for multiple OpenAPI spec files? If such a support exists, could you please point me to how I can use it? In my...