Skip to content

Commit c9a64b4

Browse files
committed
Add array of types to boolean and null JSON Schemas
1 parent f866985 commit c9a64b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jsonSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface NullJsonSchema {
1919
oneOf?: Array<NullJsonSchema>,
2020
readOnly?: boolean,
2121
title?: string,
22-
type?: 'null',
22+
type?: 'null' | Array<'null' | 'boolean' | 'string' | 'integer' | 'number' | 'array' | 'object'>,
2323
writeOnly?: boolean
2424
}
2525

@@ -48,7 +48,7 @@ export interface BooleanJsonSchema {
4848
oneOf?: Array<BooleanJsonSchema>,
4949
readOnly?: boolean,
5050
title?: string,
51-
type?: 'boolean',
51+
type?: 'boolean' | Array<'null' | 'boolean' | 'string' | 'integer' | 'number' | 'array' | 'object'>,
5252
writeOnly?: boolean
5353
}
5454

0 commit comments

Comments
 (0)