openapi-typescript
openapi-typescript copied to clipboard
Generate TypeScript types from OpenAPI 3 specs
Here is a property in my `swagger.json` ``` "Retained9": { "maximum": 100, "minimum": 0, "type": "integer", "description": "Retained9\r\nThis property is....\r\n", "format": "int32", "default": "100", "nullable": true }, ``` Using `openapi-typescript`...
## Problem For the endpoints requiring `x-www-form-encoded` body parameters, the request body is serialized as a string, and then sent as an empty object string `{}`. The solution is to...
**Description** `--array-length` with `minItems: 1` generates empty array. Tested with v7.4.4 and v7.1.2. **Reproduction** Copy the example here: https://openapi-ts.dev/cli#arraylength ```yaml components: schemas: TupleType: type: array items: type: string minItems: 1...
**Description** Since this project already has a library for TanStack React Query, it should be feasible to have an equivalent for [Pinia Colada](https://pinia-colada.esm.dev/). **Proposal** Add a library to use openapi-fetch...
**Description** The OpenAPI spec I'm working with has `pattern`, `nullable`, and `format` attributes all over the place, and these are not turned into JSDOC tags. Other tools, like `@openapi-codegen/cli`, support...
**Description** I want to create an Authentication interceptor that whenever the JWT token is expired aborts the requests since there is no need to to keep them alive if they're...
openapi-fetch may return an error of value `undefined`, when content length is 0 and response is not okay: https://github.com/openapi-ts/openapi-typescript/blob/d4689b10af870b6978e5c6107a55fff044936b39/packages/openapi-fetch/src/index.js#L205-L208 However, openapi-react-query does not propagate this error, because the error is...