diff --git a/.changeset/bump-openapi-typescript.md b/.changeset/bump-openapi-typescript.md deleted file mode 100644 index 90b84f9..0000000 --- a/.changeset/bump-openapi-typescript.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@workleap/create-schemas": minor ---- - -Bump `openapi-typescript` from `7.0.2` to `7.13.0`. - -This fixes the `enumValues` option for array-valued enums. On `7.0.2` the generated -value array was annotated with the property type instead of the item type, producing -`T[][]` assigned a list of strings and failing the build with `TS2322`. `7.13.0` emits a -`FlattenedDeepRequired` helper that unwraps the array and strips optionality, so -`enumValues` is now usable on documents whose enums appear inside arrays. - -Generated output changes slightly for documents that use `additionalProperties`: an index -signature alongside declared properties is now emitted as an intersection -(`{ ... } & { [key: string]: unknown }`) rather than merged into the object, and a typed -index signature no longer carries `| undefined`. Doc comments spanning multiple lines are -also reflowed onto their own lines. diff --git a/packages/create-schemas/CHANGELOG.md b/packages/create-schemas/CHANGELOG.md index 40ad33d..6c7fd6c 100644 --- a/packages/create-schemas/CHANGELOG.md +++ b/packages/create-schemas/CHANGELOG.md @@ -1,5 +1,23 @@ # @workleap/create-schemas +## 0.4.0 + +### Minor Changes + +- [#58](https://github.com/workleap/wl-openapi-typescript/pull/58) [`ddbd3d3`](https://github.com/workleap/wl-openapi-typescript/commit/ddbd3d30290574d31a38b4aabd74f02cdad42665) Thanks [@Ignotos](https://github.com/Ignotos)! - Bump `openapi-typescript` from `7.0.2` to `7.13.0`. + + This fixes the `enumValues` option for array-valued enums. On `7.0.2` the generated + value array was annotated with the property type instead of the item type, producing + `T[][]` assigned a list of strings and failing the build with `TS2322`. `7.13.0` emits a + `FlattenedDeepRequired` helper that unwraps the array and strips optionality, so + `enumValues` is now usable on documents whose enums appear inside arrays. + + Generated output changes slightly for documents that use `additionalProperties`: an index + signature alongside declared properties is now emitted as an intersection + (`{ ... } & { [key: string]: unknown }`) rather than merged into the object, and a typed + index signature no longer carries `| undefined`. Doc comments spanning multiple lines are + also reflowed onto their own lines. + ## 0.3.2 ### Patch Changes diff --git a/packages/create-schemas/package.json b/packages/create-schemas/package.json index 6f2b0f3..8c13ce3 100644 --- a/packages/create-schemas/package.json +++ b/packages/create-schemas/package.json @@ -1,7 +1,7 @@ { "name": "@workleap/create-schemas", "author": "Workleap", - "version": "0.3.2", + "version": "0.4.0", "description": "CLI to generate Typescript schemas from an OpenAPI document", "license": "Apache-2.0", "repository": {