Skip to content

Commit 6c9217a

Browse files
Version Packages (#59)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ddbd3d3 commit 6c9217a

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

‎.changeset/bump-openapi-typescript.md‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎packages/create-schemas/CHANGELOG.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# @workleap/create-schemas
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- [#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`.
8+
9+
This fixes the `enumValues` option for array-valued enums. On `7.0.2` the generated
10+
value array was annotated with the property type instead of the item type, producing
11+
`T[][]` assigned a list of strings and failing the build with `TS2322`. `7.13.0` emits a
12+
`FlattenedDeepRequired` helper that unwraps the array and strips optionality, so
13+
`enumValues` is now usable on documents whose enums appear inside arrays.
14+
15+
Generated output changes slightly for documents that use `additionalProperties`: an index
16+
signature alongside declared properties is now emitted as an intersection
17+
(`{ ... } & { [key: string]: unknown }`) rather than merged into the object, and a typed
18+
index signature no longer carries `| undefined`. Doc comments spanning multiple lines are
19+
also reflowed onto their own lines.
20+
321
## 0.3.2
422

523
### Patch Changes

‎packages/create-schemas/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@workleap/create-schemas",
33
"author": "Workleap",
4-
"version": "0.3.2",
4+
"version": "0.4.0",
55
"description": "CLI to generate Typescript schemas from an OpenAPI document",
66
"license": "Apache-2.0",
77
"repository": {

0 commit comments

Comments
 (0)