File tree 6 files changed +98
-2
lines changed
6 files changed +98
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://json-schema.org/draft/next/schema" ,
3
+ "$id" : " http://localhost:1234/draft-next/metaschema-optional-vocabulary.json" ,
4
+ "$vocabulary" : {
5
+ "https://json-schema.org/draft/next/vocab/validation" : true ,
6
+ "https://json-schema.org/draft/next/vocab/core" : true ,
7
+ "http://localhost:1234/draft/next/vocab/custom" : false
8
+ },
9
+ "allOf" : [
10
+ { "$ref" : " https://json-schema.org/draft/next/meta/validation" },
11
+ { "$ref" : " https://json-schema.org/draft/next/meta/core" }
12
+ ]
13
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
3
+ "$id" : " http://localhost:1234/draft2019-09/metaschema-optional-vocabulary.json" ,
4
+ "$vocabulary" : {
5
+ "https://json-schema.org/draft/2019-09/vocab/validation" : true ,
6
+ "https://json-schema.org/draft/2019-09/vocab/core" : true ,
7
+ "http://localhost:1234/draft/2019-09/vocab/custom" : false
8
+ },
9
+ "allOf" : [
10
+ { "$ref" : " https://json-schema.org/draft/2019-09/meta/validation" },
11
+ { "$ref" : " https://json-schema.org/draft/2019-09/meta/core" }
12
+ ]
13
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
3
+ "$id" : " http://localhost:1234/draft2020-12/metaschema-optional-vocabulary.json" ,
4
+ "$vocabulary" : {
5
+ "https://json-schema.org/draft/2020-12/vocab/validation" : true ,
6
+ "https://json-schema.org/draft/2020-12/vocab/core" : true ,
7
+ "http://localhost:1234/draft/2020-12/vocab/custom" : false
8
+ },
9
+ "allOf" : [
10
+ { "$ref" : " https://json-schema.org/draft/2020-12/meta/validation" },
11
+ { "$ref" : " https://json-schema.org/draft/2020-12/meta/core" }
12
+ ]
13
+ }
Original file line number Diff line number Diff line change 34
34
"valid" : true
35
35
}
36
36
]
37
- }
37
+ },
38
+ {
39
+ "description" : " ignore unrecognized optional vocabulary" ,
40
+ "schema" : {
41
+ "$schema" : " http://localhost:1234/draft-next/metaschema-optional-vocabulary.json" ,
42
+ "type" : " number"
43
+ },
44
+ "tests" : [
45
+ {
46
+ "description" : " string value" ,
47
+ "data" : " foobar" ,
48
+ "valid" : false
49
+ },
50
+ {
51
+ "description" : " number value" ,
52
+ "data" : 20 ,
53
+ "valid" : true
54
+ }
55
+ ]
56
+ }
38
57
]
Original file line number Diff line number Diff line change 34
34
"valid" : true
35
35
}
36
36
]
37
- }
37
+ },
38
+ {
39
+ "description" : " ignore unrecognized optional vocabulary" ,
40
+ "schema" : {
41
+ "$schema" : " http://localhost:1234/draft2019-09/metaschema-optional-vocabulary.json" ,
42
+ "type" : " number"
43
+ },
44
+ "tests" : [
45
+ {
46
+ "description" : " string value" ,
47
+ "data" : " foobar" ,
48
+ "valid" : false
49
+ },
50
+ {
51
+ "description" : " number value" ,
52
+ "data" : 20 ,
53
+ "valid" : true
54
+ }
55
+ ]
56
+ }
38
57
]
Original file line number Diff line number Diff line change 34
34
"valid" : true
35
35
}
36
36
]
37
+ },
38
+ {
39
+ "description" : " ignore unrecognized optional vocabulary" ,
40
+ "schema" : {
41
+ "$schema" : " http://localhost:1234/draft2020-12/metaschema-optional-vocabulary.json" ,
42
+ "type" : " number"
43
+ },
44
+ "tests" : [
45
+ {
46
+ "description" : " string value" ,
47
+ "data" : " foobar" ,
48
+ "valid" : false
49
+ },
50
+ {
51
+ "description" : " number value" ,
52
+ "data" : 20 ,
53
+ "valid" : true
54
+ }
55
+ ]
37
56
}
38
57
]
You can’t perform that action at this time.
0 commit comments