File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ npx openapi-typescript schema.yaml
159
159
| ` --default-non-nullable ` | | ` false ` | (optional) Treat schema objects with default values as non-nullable |
160
160
| ` --prettier-config [location] ` | ` -c ` | | (optional) Path to your custom Prettier configuration for output |
161
161
| ` --export-type ` | | ` false ` | (optional) Export ` type ` instead of ` interface ` |
162
+ | ` --support-array-length ` | | ` false ` | (optional) Generate tuples using array minItems / maxItems |
162
163
| ` --raw-schema ` | | ` false ` | Generate TS types from partial schema (e.g. having ` components.schema ` at the top level) |
163
164
| ` --version ` | | | Force OpenAPI version with ` --version 3 ` or ` --version 2 ` (required for ` --raw-schema ` when version is unknown) |
164
165
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Options
26
26
--prettier-config, -c (optional) specify path to Prettier config file
27
27
--raw-schema (optional) Parse as partial schema (raw components)
28
28
--export-type (optional) Export type instead of interface
29
+ --support-array-length (optional) Generate tuples using array minItems / maxItems
29
30
--version (optional) Force schema parsing version
30
31
` ;
31
32
Original file line number Diff line number Diff line change @@ -155,6 +155,9 @@ export interface SwaggerToTSOptions {
155
155
* (optional) Export type instead of interface
156
156
*/
157
157
exportType ?: boolean ;
158
+ /**
159
+ * (optional) Generate tuples using array minItems / maxItems
160
+ */
158
161
supportArrayLength ?: boolean ;
159
162
}
160
163
You can’t perform that action at this time.
0 commit comments