Skip to content

Commit 646e134

Browse files
committed
Split JSON Schema into JsonSchemaObject and JsonSchemaBoolean
1 parent 19503e9 commit 646e134

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/2020-12.ts

+16-14
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,19 @@ type UnevaluatedLocationsKeywords = {
9090
unevaluatedProperties?: JsonSchema;
9191
};
9292

93-
export type JsonSchema =
94-
| boolean
95-
| (CoreKeywords &
96-
LogicSubschemasKeywords &
97-
ConditionalSubschemasKeywords &
98-
CommonValidationKeywords &
99-
MetaDataAnnotationKeywords &
100-
FormatKeywords &
101-
StringValidationKeywords &
102-
NumericValidationKeywords &
103-
ArrayValidationKeywords &
104-
ObjectValidationKeywords &
105-
UnevaluatedLocationsKeywords &
106-
ObjectSubschemaKeywords);
93+
export type JsonSchemaObject = CoreKeywords &
94+
LogicSubschemasKeywords &
95+
ConditionalSubschemasKeywords &
96+
CommonValidationKeywords &
97+
MetaDataAnnotationKeywords &
98+
FormatKeywords &
99+
StringValidationKeywords &
100+
NumericValidationKeywords &
101+
ArrayValidationKeywords &
102+
ObjectValidationKeywords &
103+
UnevaluatedLocationsKeywords &
104+
ObjectSubschemaKeywords;
105+
106+
type JsonSchemaBoolean = boolean;
107+
108+
export type JsonSchema = JsonSchemaBoolean | JsonSchemaObject;

0 commit comments

Comments
 (0)