File tree Expand file tree Collapse file tree 5 files changed +175
-0
lines changed
json-schema-draft-2019-09
json-schema-draft-2020-12 Expand file tree Collapse file tree 5 files changed +175
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ../../test-schema.json" ,
3
+ "registry" : {
4
+ "http://example.com/" : {
5
+ "definitions" : {
6
+ "foo" : {
7
+ "id" : " #foo" ,
8
+ "definitions" : {
9
+ "bar" : { "baz" : " quux" }
10
+ }
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "tests" : [
16
+ {
17
+ "base_uri" : " http://example.com/" ,
18
+ "ref" : " #foo/definitions/bar" ,
19
+ "error" : true
20
+ },
21
+ {
22
+ "base_uri" : " http://example.com/" ,
23
+ "ref" : " #foo#/definitions/bar" ,
24
+ "error" : true
25
+ },
26
+ {
27
+ "ref" : " http://example.com/#foo/definitions/bar" ,
28
+ "error" : true
29
+ },
30
+ {
31
+ "ref" : " http://example.com#foo/definitions/bar" ,
32
+ "error" : true
33
+ }
34
+ ]
35
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ../../test-schema.json" ,
3
+ "registry" : {
4
+ "http://example.com/" : {
5
+ "definitions" : {
6
+ "foo" : {
7
+ "$id" : " #foo" ,
8
+ "definitions" : {
9
+ "bar" : { "baz" : " quux" }
10
+ }
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "tests" : [
16
+ {
17
+ "base_uri" : " http://example.com/" ,
18
+ "ref" : " #foo/definitions/bar" ,
19
+ "error" : true
20
+ },
21
+ {
22
+ "base_uri" : " http://example.com/" ,
23
+ "ref" : " #foo#/definitions/bar" ,
24
+ "error" : true
25
+ },
26
+ {
27
+ "ref" : " http://example.com/#foo/definitions/bar" ,
28
+ "error" : true
29
+ },
30
+ {
31
+ "ref" : " http://example.com#foo/definitions/bar" ,
32
+ "error" : true
33
+ }
34
+ ]
35
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ../../test-schema.json" ,
3
+ "registry" : {
4
+ "http://example.com/" : {
5
+ "definitions" : {
6
+ "foo" : {
7
+ "$id" : " #foo" ,
8
+ "definitions" : {
9
+ "bar" : { "baz" : " quux" }
10
+ }
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "tests" : [
16
+ {
17
+ "base_uri" : " http://example.com/" ,
18
+ "ref" : " #foo/definitions/bar" ,
19
+ "error" : true
20
+ },
21
+ {
22
+ "base_uri" : " http://example.com/" ,
23
+ "ref" : " #foo#/definitions/bar" ,
24
+ "error" : true
25
+ },
26
+ {
27
+ "ref" : " http://example.com/#foo/definitions/bar" ,
28
+ "error" : true
29
+ },
30
+ {
31
+ "ref" : " http://example.com#foo/definitions/bar" ,
32
+ "error" : true
33
+ }
34
+ ]
35
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ../../test-schema.json" ,
3
+ "registry" : {
4
+ "http://example.com/" : {
5
+ "$defs" : {
6
+ "foo" : {
7
+ "$anchor" : " foo" ,
8
+ "$defs" : {
9
+ "bar" : { "baz" : " quux" }
10
+ }
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "tests" : [
16
+ {
17
+ "base_uri" : " http://example.com/" ,
18
+ "ref" : " #foo/$defs/bar" ,
19
+ "error" : true
20
+ },
21
+ {
22
+ "base_uri" : " http://example.com/" ,
23
+ "ref" : " #foo#/$defs/bar" ,
24
+ "error" : true
25
+ },
26
+ {
27
+ "ref" : " http://example.com/#foo/$defs/bar" ,
28
+ "error" : true
29
+ },
30
+ {
31
+ "ref" : " http://example.com#foo/$defs/bar" ,
32
+ "error" : true
33
+ }
34
+ ]
35
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ../../test-schema.json" ,
3
+ "registry" : {
4
+ "http://example.com/" : {
5
+ "$defs" : {
6
+ "foo" : {
7
+ "$anchor" : " foo" ,
8
+ "$defs" : {
9
+ "bar" : { "baz" : " quux" }
10
+ }
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "tests" : [
16
+ {
17
+ "base_uri" : " http://example.com/" ,
18
+ "ref" : " #foo/$defs/bar" ,
19
+ "error" : true
20
+ },
21
+ {
22
+ "base_uri" : " http://example.com/" ,
23
+ "ref" : " #foo#/$defs/bar" ,
24
+ "error" : true
25
+ },
26
+ {
27
+ "ref" : " http://example.com/#foo/$defs/bar" ,
28
+ "error" : true
29
+ },
30
+ {
31
+ "ref" : " http://example.com#foo/$defs/bar" ,
32
+ "error" : true
33
+ }
34
+ ]
35
+ }
You can’t perform that action at this time.
0 commit comments