diff --git a/.changeset/lovely-carrots-train.md b/.changeset/lovely-carrots-train.md deleted file mode 100644 index a56d791..0000000 --- a/.changeset/lovely-carrots-train.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"typed-openapi": minor ---- - -Thanks to @0237h: - -Allow for finer marking of optional parameters Current behavior allows only for marking _all_ parameters as optional, or -none. - -This change checks first if all parameters are optional, keeping the old behavior if that's the case, otherwise iterates -through the parameters to mark only those that **should** be optional from the OpenAPI spec. diff --git a/packages/typed-openapi/CHANGELOG.md b/packages/typed-openapi/CHANGELOG.md index 2ecbb03..c846e0b 100644 --- a/packages/typed-openapi/CHANGELOG.md +++ b/packages/typed-openapi/CHANGELOG.md @@ -1,5 +1,17 @@ # typed-openapi +## 0.5.0 + +### Minor Changes + +- f0886a0: Thanks to @0237h: + + Allow for finer marking of optional parameters Current behavior allows only for marking _all_ parameters as optional, + or none. + + This change checks first if all parameters are optional, keeping the old behavior if that's the case, otherwise + iterates through the parameters to mark only those that **should** be optional from the OpenAPI spec. + ## 0.4.1 ### Patch Changes diff --git a/packages/typed-openapi/package.json b/packages/typed-openapi/package.json index e9b0e2e..5dbbc81 100644 --- a/packages/typed-openapi/package.json +++ b/packages/typed-openapi/package.json @@ -1,7 +1,7 @@ { "name": "typed-openapi", "type": "module", - "version": "0.4.1", + "version": "0.5.0", "main": "dist/index.cjs", "module": "dist/index.js", "bin": {