Skip to content

Commit e601928

Browse files
committed
add to context
1 parent 22895d2 commit e601928

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/openapi-typescript/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ async function openapiTS(schema: string | URL | OpenAPI3 | Readable, options: Op
5454
silent: options.silent ?? false,
5555
supportArrayLength: options.supportArrayLength ?? false,
5656
excludeDeprecated: options.excludeDeprecated ?? false,
57+
rootTypes: options.rootTypes ?? false,
5758
};
5859

5960
// 1. load schema (and subschemas)

packages/openapi-typescript/src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ export interface GlobalContext {
709709
silent: boolean;
710710
supportArrayLength: boolean;
711711
excludeDeprecated: boolean;
712+
rootTypes: boolean;
712713
}
713714

714715
export type $defs = Record<string, SchemaObject>;

0 commit comments

Comments
 (0)