File tree 5 files changed +178
-2
lines changed
5 files changed +178
-2
lines changed Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
- "description" : " reference of a root arbitrary keyword " ,
3
+ "description" : " reference to a root arbitrary keyword " ,
4
4
"schema" : {
5
5
"unknown-keyword" : {"type" : " integer" },
6
6
"properties" : {
21
21
]
22
22
},
23
23
{
24
- "description" : " reference of an arbitrary keyword of a sub-schema" ,
24
+ "description" : " reference to an arbitrary keyword of a sub-schema" ,
25
25
"schema" : {
26
26
"properties" : {
27
27
"foo" : {"unknown-keyword" : {"type" : " integer" }},
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "description" : " reference to a root arbitrary keyword " ,
4
+ "schema" : {
5
+ "unknown-keyword" : {"type" : " integer" },
6
+ "properties" : {
7
+ "bar" : {"$ref" : " #/unknown-keyword" }
8
+ }
9
+ },
10
+ "tests" : [
11
+ {
12
+ "description" : " match" ,
13
+ "data" : {"bar" : 3 },
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " mismatch" ,
18
+ "data" : {"bar" : true },
19
+ "valid" : false
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "description" : " reference to an arbitrary keyword of a sub-schema" ,
25
+ "schema" : {
26
+ "properties" : {
27
+ "foo" : {"unknown-keyword" : {"type" : " integer" }},
28
+ "bar" : {"$ref" : " #/properties/foo/unknown-keyword" }
29
+ }
30
+ },
31
+ "tests" : [
32
+ {
33
+ "description" : " match" ,
34
+ "data" : {"bar" : 3 },
35
+ "valid" : true
36
+ },
37
+ {
38
+ "description" : " mismatch" ,
39
+ "data" : {"bar" : true },
40
+ "valid" : false
41
+ }
42
+ ]
43
+ }
44
+ ]
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "description" : " reference to a root arbitrary keyword " ,
4
+ "schema" : {
5
+ "unknown-keyword" : {"type" : " integer" },
6
+ "properties" : {
7
+ "bar" : {"$ref" : " #/unknown-keyword" }
8
+ }
9
+ },
10
+ "tests" : [
11
+ {
12
+ "description" : " match" ,
13
+ "data" : {"bar" : 3 },
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " mismatch" ,
18
+ "data" : {"bar" : true },
19
+ "valid" : false
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "description" : " reference to an arbitrary keyword of a sub-schema" ,
25
+ "schema" : {
26
+ "properties" : {
27
+ "foo" : {"unknown-keyword" : {"type" : " integer" }},
28
+ "bar" : {"$ref" : " #/properties/foo/unknown-keyword" }
29
+ }
30
+ },
31
+ "tests" : [
32
+ {
33
+ "description" : " match" ,
34
+ "data" : {"bar" : 3 },
35
+ "valid" : true
36
+ },
37
+ {
38
+ "description" : " mismatch" ,
39
+ "data" : {"bar" : true },
40
+ "valid" : false
41
+ }
42
+ ]
43
+ }
44
+ ]
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "description" : " reference to a root arbitrary keyword " ,
4
+ "schema" : {
5
+ "unknown-keyword" : {"type" : " integer" },
6
+ "properties" : {
7
+ "bar" : {"$ref" : " #/unknown-keyword" }
8
+ }
9
+ },
10
+ "tests" : [
11
+ {
12
+ "description" : " match" ,
13
+ "data" : {"bar" : 3 },
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " mismatch" ,
18
+ "data" : {"bar" : true },
19
+ "valid" : false
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "description" : " reference to an arbitrary keyword of a sub-schema" ,
25
+ "schema" : {
26
+ "properties" : {
27
+ "foo" : {"unknown-keyword" : {"type" : " integer" }},
28
+ "bar" : {"$ref" : " #/properties/foo/unknown-keyword" }
29
+ }
30
+ },
31
+ "tests" : [
32
+ {
33
+ "description" : " match" ,
34
+ "data" : {"bar" : 3 },
35
+ "valid" : true
36
+ },
37
+ {
38
+ "description" : " mismatch" ,
39
+ "data" : {"bar" : true },
40
+ "valid" : false
41
+ }
42
+ ]
43
+ }
44
+ ]
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "description" : " reference to a root arbitrary keyword " ,
4
+ "schema" : {
5
+ "unknown-keyword" : {"type" : " integer" },
6
+ "properties" : {
7
+ "bar" : {"$ref" : " #/unknown-keyword" }
8
+ }
9
+ },
10
+ "tests" : [
11
+ {
12
+ "description" : " match" ,
13
+ "data" : {"bar" : 3 },
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " mismatch" ,
18
+ "data" : {"bar" : true },
19
+ "valid" : false
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "description" : " reference to an arbitrary keyword of a sub-schema" ,
25
+ "schema" : {
26
+ "properties" : {
27
+ "foo" : {"unknown-keyword" : {"type" : " integer" }},
28
+ "bar" : {"$ref" : " #/properties/foo/unknown-keyword" }
29
+ }
30
+ },
31
+ "tests" : [
32
+ {
33
+ "description" : " match" ,
34
+ "data" : {"bar" : 3 },
35
+ "valid" : true
36
+ },
37
+ {
38
+ "description" : " mismatch" ,
39
+ "data" : {"bar" : true },
40
+ "valid" : false
41
+ }
42
+ ]
43
+ }
44
+ ]
You can’t perform that action at this time.
0 commit comments