openapi-ts
openapi-ts copied to clipboard
β¨ Turn your OpenAPI specification into a beautiful TypeScript client
### Description Everything was working OK for me in 0.64.15, but since 0.65.0 (currently 0.66.3), I'm getting a typescript error, and it seems to be in the library's typings file...
This adds an option asInstance that makes the sdk class instantiable. Specifically: 1. Methods are instance methods instead of static 2. The sdk takes a client as a parameter in...
### Description When using the `@tanstack/svelte-query` plugin within fastify, the `svelte-query.gen.ts` file generates just fine. However, I get the following error in all of my requestResourceOptions(): ```bash The inferred type...
### Description I have configured openap-ts to transform date fields and transformers are genereated and even supplied to SDK clients, however I am unable to observe the transformers being called....
### Description I am using the Zod and Date transformer but I noticed the Zod creates dates as z.string().date() instead of z.date() which messes with the Date transformer. Is there...
The workflow has changed over the course of the versions, now there seems to be no way to stop the tooling for setting the baseUrl in the client.gen.ts. I set...
Related https://github.com/hey-api/openapi-ts/issues/1213#issuecomment-2765206344
### Context: Iβm using @hey-api/openapi-ts to generate TypeScript types/schemas from a FastAPI backendβs OpenAPI spec. My frontend (React) uses Temporal.Instant (via @js-temporal/polyfill) for datetime handling, but the generated types default...
### Description From [OpenAPI docs](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#dataTypeFormat): > As defined by the [JSON Schema Validation vocabulary](https://tools.ietf.org/html/draft-bhutton-json-schema-validation-00#section-7.3), data types can have an optional modifier property: format. OAS defines additional formats to provide fine...