openapi-typescript icon indicating copy to clipboard operation
openapi-typescript copied to clipboard

Generate TypeScript types from OpenAPI 3 specs

Results 247 openapi-typescript issues
Sort by recently updated
recently updated
newest added

## Changes reference:#1683 ## How to Review The tests should pass ## Checklist - [x] Unit tests updated - [x] `docs/` updated (if necessary) - [ ] `pnpm run update:examples`...

I was trying to use openapi-fetch for file uploading, but by default that wasn't possible (using `multipart/form-data`). Looking at the source code I noticed that part of the solution for...

**Description** My OpenAPI specification contains parameters with values are located in cookies. It would be most convenient if this project wrote specified cookies to outgoing requests. I saw https://github.com/openapi-ts/openapi-typescript/issues/1689 was...

openapi-fetch

**Description** If I have something like this: ``` const { data, error } = await client.POST("/api/product", { body: { ProductVersion: "1.0.0", ASDfadsfasdf: "asdfasdf" } }); ``` then tsc correctly flags...

bug
PRs welcome
good first issue
openapi-fetch

**Description** We have multiple paths in our schema that are "nested" below each other, like so: ``` /some/path/{id} /some/path/{id}/summary ``` openapi-typescript using the argument --path-params-as-types generates the following: ``` [path:...

bug
PRs welcome
openapi-ts

**Description** The union type for the error object returned by fetch has changed in typescript-fetch v0.10 and later versions. **Reproduction** I updated typescript-fetch to v0.10.1. After the update, the type...

PRs welcome
question
openapi-fetch

**Description** Hi, when using the `--enum` flag, the same enum gets generated multiple times if it's used multiple times, can we get a new flag or something to not generate...

bug
openapi-ts

**Description** [Document for conditional authentication](https://openapi-ts.dev/openapi-fetch/middleware-auth#conditional-auth) failed. The code in documentation failed with error ``` TypeError: Cannot read properties of undefined (reading 'startsWith') ``` **Reproduction** Just follow the document **Expected result**...

bug
openapi-fetch

**Description** ``` node_modules/.pnpm/[email protected]/node_modules/openapi-fetch/dist/index.d.ts:27:5 - error TS2304: Cannot find name 'HeadersInit'. 27 | HeadersInit ~~~~~~~~~~~ Found 1 error in node_modules/.pnpm/[email protected]/node_modules/openapi-fetch/dist/index.d.ts:27  ELIFECYCLE  Command failed with exit code 1. node:internal/modules/cjs/loader:1215 throw err; ^...

bug
openapi-fetch

**Description** To make Openapi-Fetch more compatible with Bun, the fetch call should be modified. The problem is that Bun removes all header information within the request object. To avoid this...

bug
openapi-fetch