openapi-typescript
openapi-typescript copied to clipboard
Generate TypeScript types from OpenAPI 3 specs
**Description** An optional field in the openapi schema that includes the `default` property is generated as required in typescript | Name | Version | | :------------------- | :--------------------------- | |...
## Changes This pull request closes #2123 by improving the thunk detection regex `() => User`. ## How to Review A new added test that was failing before is now...
## Changes The current state of queryOptions doesn't take advantage of the `queryOptions` helper, which has the ability of linking the returned data shape to the queryKey. This is useful...
### openapi-typescript version 7.6.0 ### Node.js version 20.15.0 ### OS + version macOS 15.2 ### Description After upgrading from openapi-typescript 6.7.0 to 7.6.0, our linter started warning about duplicates in...
### openapi-typescript version 12.1.3 ### Node.js version 23.6.0 ### OS + version macOS 15.2 ### Description I ran into an issue while working when using the open api lib @ApiProperty({...
### openapi-react-query version 0.2.9 ### Description MutationKey don't include params as can be seen in this code ``` ts useMutation( { mutationKey: [method, path], mutationFn: async (init) => { const...
### Description I'm using `openapi-fetch` with [`ky`](https://github.com/sindresorhus/ky) ```ts import ky from "ky"; import createFetchClient from "openapi-fetch"; const fetchClient = createFetchClient({ baseUrl: "https://example.com", fetch(input) { return ky(input); }, }); ``` One...
### openapi-fetch version 0.13.4 ### Description I'm trying to use openapi-fetch in a Next.js 14 app and I've noticed the `body` is being omitted from `POST` requests made from within...
**Description** _A brief description of the bug. Provide either a screenshot or the full error message_ When we use the `--path-params-as-types` flag with `openapi-typescript` to generate types, some post requests(seems...
**Description** I'm trying out openapi-react-query and I don't seem to be able to get it to work. I'm creating a client like so: ```typescript const fetchClient = createFetchClient({ baseUrl: "http://localhost:8880"...