From f1f2408fc020b2df66fefd104292b0dfc0cc3d98 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 25 Sep 2023 15:26:24 +0000 Subject: [PATCH] [ci] release --- .changeset/strange-birds-jam.md | 5 ----- packages/openapi-fetch/examples/nextjs/lib/api/v1.d.ts | 6 +++--- .../openapi-fetch/examples/react-query/src/lib/api/v1.d.ts | 6 +++--- .../openapi-fetch/examples/sveltekit/src/lib/api/v1.d.ts | 6 +++--- packages/openapi-fetch/test/v1.d.ts | 2 +- packages/openapi-typescript/CHANGELOG.md | 6 ++++++ packages/openapi-typescript/package.json | 2 +- 7 files changed, 17 insertions(+), 16 deletions(-) delete mode 100644 .changeset/strange-birds-jam.md diff --git a/.changeset/strange-birds-jam.md b/.changeset/strange-birds-jam.md deleted file mode 100644 index b5659db92..000000000 --- a/.changeset/strange-birds-jam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"openapi-typescript": minor ---- - -Revert optional parameters breaking change (v6.6.0, #1335) 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 02cdcf66e..55ffdce79 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 02cdcf66e..55ffdce79 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 02cdcf66e..55ffdce79 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 d1c42ebe9..0f71500b6 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 6261cb851..1b8963b3d 100644 --- a/packages/openapi-typescript/CHANGELOG.md +++ b/packages/openapi-typescript/CHANGELOG.md @@ -1,5 +1,11 @@ # openapi-typescript +## 6.7.0 + +### Minor Changes + +- [#1355](https://github.com/drwpow/openapi-typescript/pull/1355) [`7568941`](https://github.com/drwpow/openapi-typescript/commit/7568941fb378a9b94c96754553a720093645dd64) Thanks [@drwpow](https://github.com/drwpow)! - Revert optional parameters breaking change (v6.6.0, #1335) + ## 6.6.2 ### Patch Changes diff --git a/packages/openapi-typescript/package.json b/packages/openapi-typescript/package.json index bff0867f9..5076ea301 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.2", + "version": "6.7.0", "author": { "name": "Drew Powers", "email": "drew@pow.rs"