diff --git a/.changeset/brown-trainers-wink.md b/.changeset/brown-trainers-wink.md deleted file mode 100644 index 8af89b080..000000000 --- a/.changeset/brown-trainers-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"openapi-typescript": patch ---- - -Improve YAML vs JSON parsing diff --git a/.changeset/chilled-swans-hunt.md b/.changeset/chilled-swans-hunt.md deleted file mode 100644 index 291a3c8b3..000000000 --- a/.changeset/chilled-swans-hunt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"openapi-typescript": patch ---- - -Fix all parameters optional diff --git a/.changeset/nice-sheep-juggle.md b/.changeset/nice-sheep-juggle.md deleted file mode 100644 index 262615098..000000000 --- a/.changeset/nice-sheep-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"openapi-typescript": patch ---- - -Mirror directory structure of input files if output is a directory to prevent overwriting the same file again and again. diff --git a/packages/openapi-fetch/examples/nextjs/lib/api/v1.d.ts b/packages/openapi-fetch/examples/nextjs/lib/api/v1.d.ts index 55ffdce79..02cdcf66e 100644 --- a/packages/openapi-fetch/examples/nextjs/lib/api/v1.d.ts +++ b/packages/openapi-fetch/examples/nextjs/lib/api/v1.d.ts @@ -109,7 +109,7 @@ export interface operations { * @description Returns a a list of breeds */ getBreeds: { - parameters: { + parameters?: { query?: { /** @description limit the amount of results returned */ limit?: number; @@ -135,7 +135,7 @@ export interface operations { * @description Returns a random fact */ getRandomFact: { - parameters: { + parameters?: { query?: { /** @description maximum length of returned fact */ max_length?: number; @@ -167,7 +167,7 @@ export interface operations { * @description Returns a a list of facts */ getFacts: { - parameters: { + parameters?: { query?: { /** @description maximum length of returned fact */ max_length?: number; diff --git a/packages/openapi-fetch/examples/react-query/src/lib/api/v1.d.ts b/packages/openapi-fetch/examples/react-query/src/lib/api/v1.d.ts index 55ffdce79..02cdcf66e 100644 --- a/packages/openapi-fetch/examples/react-query/src/lib/api/v1.d.ts +++ b/packages/openapi-fetch/examples/react-query/src/lib/api/v1.d.ts @@ -109,7 +109,7 @@ export interface operations { * @description Returns a a list of breeds */ getBreeds: { - parameters: { + parameters?: { query?: { /** @description limit the amount of results returned */ limit?: number; @@ -135,7 +135,7 @@ export interface operations { * @description Returns a random fact */ getRandomFact: { - parameters: { + parameters?: { query?: { /** @description maximum length of returned fact */ max_length?: number; @@ -167,7 +167,7 @@ export interface operations { * @description Returns a a list of facts */ getFacts: { - parameters: { + parameters?: { query?: { /** @description maximum length of returned fact */ max_length?: number; diff --git a/packages/openapi-fetch/examples/sveltekit/src/lib/api/v1.d.ts b/packages/openapi-fetch/examples/sveltekit/src/lib/api/v1.d.ts index 55ffdce79..02cdcf66e 100644 --- a/packages/openapi-fetch/examples/sveltekit/src/lib/api/v1.d.ts +++ b/packages/openapi-fetch/examples/sveltekit/src/lib/api/v1.d.ts @@ -109,7 +109,7 @@ export interface operations { * @description Returns a a list of breeds */ getBreeds: { - parameters: { + parameters?: { query?: { /** @description limit the amount of results returned */ limit?: number; @@ -135,7 +135,7 @@ export interface operations { * @description Returns a random fact */ getRandomFact: { - parameters: { + parameters?: { query?: { /** @description maximum length of returned fact */ max_length?: number; @@ -167,7 +167,7 @@ export interface operations { * @description Returns a a list of facts */ getFacts: { - parameters: { + parameters?: { query?: { /** @description maximum length of returned fact */ max_length?: number; diff --git a/packages/openapi-fetch/test/v1.d.ts b/packages/openapi-fetch/test/v1.d.ts index 0f71500b6..d1c42ebe9 100644 --- a/packages/openapi-fetch/test/v1.d.ts +++ b/packages/openapi-fetch/test/v1.d.ts @@ -16,7 +16,7 @@ export interface paths { }; "/blogposts": { get: { - parameters: { + parameters?: { query?: { tags?: string[]; }; diff --git a/packages/openapi-typescript/CHANGELOG.md b/packages/openapi-typescript/CHANGELOG.md index 327abff8c..6261cb851 100644 --- a/packages/openapi-typescript/CHANGELOG.md +++ b/packages/openapi-typescript/CHANGELOG.md @@ -1,5 +1,15 @@ # openapi-typescript +## 6.6.2 + +### Patch Changes + +- [#1348](https://github.com/drwpow/openapi-typescript/pull/1348) [`f6fdd2f`](https://github.com/drwpow/openapi-typescript/commit/f6fdd2f59d035fec22f7fee27136939faae4628b) Thanks [@drwpow](https://github.com/drwpow)! - Improve YAML vs JSON parsing + +- [#1352](https://github.com/drwpow/openapi-typescript/pull/1352) [`33b2c4f`](https://github.com/drwpow/openapi-typescript/commit/33b2c4f6d9f8d2a1bd42b13b3c8c168ed86609d6) Thanks [@drwpow](https://github.com/drwpow)! - Fix all parameters optional + +- [#1345](https://github.com/drwpow/openapi-typescript/pull/1345) [`6f078c1`](https://github.com/drwpow/openapi-typescript/commit/6f078c1eb008a278858e6764e92af6ceb39922b4) Thanks [@SchabaJo](https://github.com/SchabaJo)! - Mirror directory structure of input files if output is a directory to prevent overwriting the same file again and again. + ## 6.6.1 ### Patch Changes diff --git a/packages/openapi-typescript/package.json b/packages/openapi-typescript/package.json index cf32eec15..bff0867f9 100644 --- a/packages/openapi-typescript/package.json +++ b/packages/openapi-typescript/package.json @@ -1,7 +1,7 @@ { "name": "openapi-typescript", "description": "Convert OpenAPI 3.0 & 3.1 schemas to TypeScript", - "version": "6.6.1", + "version": "6.6.2", "author": { "name": "Drew Powers", "email": "drew@pow.rs"