Skip to content

Commit a4b87a4

Browse files
committed
fixup! Supports minItems / maxItems
1 parent 28fef1f commit a4b87a4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async function openapiTS(
4141
immutableTypes: options.immutableTypes || false,
4242
rawSchema: options.rawSchema || false,
4343
version: options.version || 3,
44+
supportArrayLength: options.supportArrayLength,
4445
} as any;
4546

4647
// note: we may be loading many large schemas into memory at once; take care to reuse references without cloning

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export interface SwaggerToTSOptions {
151151
* @default {string} GET
152152
*/
153153
httpMethod?: string;
154+
supportArrayLength?: boolean;
154155
}
155156

156157
/** Context passed to all submodules */

0 commit comments

Comments
 (0)