Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .changeset/bump-openapi-typescript.md

This file was deleted.

18 changes: 18 additions & 0 deletions packages/create-schemas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/create-schemas/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading