File tree 1 file changed +14
-9
lines changed
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,6 @@ type ConditionalSubschemasKeywords = {
24
24
then ?: JsonSchema ;
25
25
} ;
26
26
27
- type JsonSchemaType = 'null' | 'boolean' | 'string' | 'integer' | 'number' | 'array' | 'object' ;
28
-
29
- type AnyValidationKeywords = {
30
- const ?: any ;
31
- enum ?: Array < any > ;
32
- type ?: JsonSchemaType | Array < JsonSchemaType > ;
33
- } ;
34
-
35
27
type MetaDataAnnotationKeywords = {
36
28
default ?: any ;
37
29
deprecated ?: boolean ;
@@ -42,6 +34,18 @@ type MetaDataAnnotationKeywords = {
42
34
writeOnly ?: boolean ;
43
35
} ;
44
36
37
+ type FormatKeywords = {
38
+ format ?: string ;
39
+ } ;
40
+
41
+ type JsonSchemaType = 'null' | 'boolean' | 'string' | 'integer' | 'number' | 'array' | 'object' ;
42
+
43
+ type CommonValidationKeywords = {
44
+ const ?: any ;
45
+ enum ?: Array < any > ;
46
+ type ?: JsonSchemaType | Array < JsonSchemaType > ;
47
+ } ;
48
+
45
49
type StringValidationKeywords = {
46
50
maxLength ?: number ;
47
51
minLength ?: number ;
@@ -90,8 +94,9 @@ export type JsonSchema = CoreKeywords &
90
94
LogicSubschemasKeywords &
91
95
ConditionalSubschemasKeywords &
92
96
JsonSchemaType &
93
- AnyValidationKeywords &
97
+ CommonValidationKeywords &
94
98
MetaDataAnnotationKeywords &
99
+ FormatKeywords &
95
100
StringValidationKeywords &
96
101
NumericValidationKeywords &
97
102
ArrayValidationKeywords &
You can’t perform that action at this time.
0 commit comments