-
-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simplify minItems / maxItems tuple generation Closes #2048
- Loading branch information
1 parent
bf14226
commit 3285052
Showing
4 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"openapi-typescript": minor | ||
--- | ||
|
||
Extract types generation for Array-type schemas to `transformArraySchemaObject` method. | ||
Generate correct number of union members for `minItems` * `maxItems` unions. | ||
Generate readonly tuple members for `minItems` & `maxItems` unions. | ||
Generate readonly spread member for `prefixItems` tuple. | ||
Preserve `prefixItems` type members in `minItems` & `maxItems` tuples. | ||
Generate spread member for `prefixItems` tuple with no `minItems` / `maxItems` constraints. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters