openapi-typescript
openapi-typescript copied to clipboard
Generate TypeScript types from OpenAPI 3 specs
I'm using the cli tool like this ```terminal npx openapi-typescript --default-non-nullable openapi.yml --prettier-config .prettierrc --output typeApi.ts ``` But still the query parameters with a default value are optional type properties.
Hi :wave: I need to generate types for `components.securitySchemes`, and `security` on each operation. Is this something that would be useful for this library, or is it out of scope?...
Hi in toolings like Orval and Rapini you can replace the paths context. This is handy for clients who use a specific context in their frontend to point to that...
I'm working with an OpenAPI spec that uses nested query string parameters (i.e. `page[number]=2`). [By default](https://expressjs.com/en/api.html#app.settings.table), this is parsed by Express using the [qs](https://www.npmjs.com/package/qs) module which converts that to a...
Is there any way that I can convert swagger definition with external ref which require authentication to typescript?
**Description** The `--properties-required-by-default` and `--default-non-nullable` flags do not work. If you include these flag in the CLI, the execution hangs forever. From [this](https://github.com/drwpow/openapi-typescript/issues/1003) issue it also seems like the same...
**Description** My stack: - Next.js (App Router) - Auth.js - openapi-typescript - openapi-fetch - TanStack Query (React Query) **Reproduction** - On the server side, the _openapi-fetch_ works great: `const settingsResponse...
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....
**Description** When defining multiple security schemes, the package fails to parse the spec, as it expects all security schemes to be defined in the security section. According to the OpenAPI...
## Changes Bumps the version of openapi-typescript-fetch for benchmark ## How to Review No code changes, all tests should pass ## Checklist - [ ] Unit tests updated - [...