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

**Description** After upgrade from v0.8.2 to v0.9.3 I noticed breaking behavior. When passing raw strings as path params, they don't get url-encoded. **Reproduction** ```js console.log(defaultPathSerializer('/hello/{slug}', {slug: '/foo?bar'})) // output: /hello//foo?bar...

bug
openapi-fetch

## Changes NextJs uses fetch's options to pass information about caching. These were removed by openapi-fetch. https://github.com/drwpow/openapi-typescript/issues/1569#issuecomment-1966999115 ## Checklist - [x] Unit tests updated - [x] `docs/` updated (if necessary)...

**Missing Type Definitions for Pattern, MaxLength, MinLength** _When trying to validate an OpenAPI 3 specification that is using Patterns, MaxLength, and MinLength for string and other data types, I get...

question
openapi-ts

## Changes _What does this PR change? Link to any related issue(s)._ Allows you to provide the Request class to use. see: https://github.com/drwpow/openapi-typescript/issues/1563 Caused issues for us using node 20's...

openapi-fetch

**Description** I am using `openapi-fetch` in Node.js. As you probably know, the built-in `fetch` is provided by [Undici project](https://github.com/nodejs/undici), which is still in development. Usually it's better to install `undici`...

enhancement
PRs welcome
openapi-fetch

**Description** I've decided to make it an issue mostly in case someone else is about to spend multiple hours figuring out what's wrong. That's why I'm going to be a...

bug
openapi-ts

See https://swagger.io/docs/specification/data-models/data-types/#readonly-writeonly These modifiers are on specific properties and allow for a single definition to be used in both read & write endpoints, but provide a different shape to each...

enhancement
PRs welcome
good first issue
openapi-ts

**Description** I've been using 7.0.0-next.7 and it is working fine with --immutable, except it would be nice for the arrays to be readonly as well, so that the types are...

enhancement
help wanted
openapi-ts

**Description** Not sure if this is a bug. I would like to confirm that types generation is possible with my schema ``` Typescript definitions are circular which results in "any"...

bug
openapi-ts
tricky

**Description** Openapi-fetch uses a request object for its fetch. https://github.com/drwpow/openapi-typescript/blob/9c277fb0a10c3513de46765a4381ccb722a72af4/packages/openapi-fetch/src/index.js#L101 The request object created by openapi-fetch strips away non standard fetch options, i.e. how Next.js passes its cache related params:...

bug
PRs welcome
good first issue
openapi-fetch