File tree 1 file changed +51
-9
lines changed
1 file changed +51
-9
lines changed Original file line number Diff line number Diff line change 2
2
{
3
3
"description" : " Location-independent identifier" ,
4
4
"schema" : {
5
- "allOf" : [{
6
- "$ref" : " #foo"
7
- }],
5
+ "$ref" : " #foo" ,
8
6
"$defs" : {
9
7
"A" : {
10
8
"$anchor" : " foo" ,
28
26
{
29
27
"description" : " Location-independent identifier with absolute URI" ,
30
28
"schema" : {
31
- "allOf" : [{
32
- "$ref" : " http://localhost:1234/bar#foo"
33
- }],
29
+ "$ref" : " http://localhost:1234/bar#foo" ,
34
30
"$defs" : {
35
31
"A" : {
36
32
"$id" : " http://localhost:1234/bar" ,
56
52
"description" : " Location-independent identifier with base URI change in subschema" ,
57
53
"schema" : {
58
54
"$id" : " http://localhost:1234/root" ,
59
- "allOf" : [{
60
- "$ref" : " http://localhost:1234/nested.json#foo"
61
- }],
55
+ "$ref" : " http://localhost:1234/nested.json#foo" ,
62
56
"$defs" : {
63
57
"A" : {
64
58
"$id" : " nested.json" ,
83
77
"valid" : false
84
78
}
85
79
]
80
+ },
81
+ {
82
+ "description" : " Fragment syntax disallowed" ,
83
+ "schema" : {
84
+ "$ref" : " #foo" ,
85
+ "$defs" : {
86
+ "A" : {
87
+ "$anchor" : " #foo" ,
88
+ "type" : " integer"
89
+ }
90
+ }
91
+ },
92
+ "tests" : [
93
+ {
94
+ "data" : 1 ,
95
+ "description" : " match" ,
96
+ "valid" : false
97
+ },
98
+ {
99
+ "data" : " a" ,
100
+ "description" : " mismatch" ,
101
+ "valid" : false
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "description" : " Invalid characters disallowed" ,
107
+ "schema" : {
108
+ "$ref" : " #/a/b" ,
109
+ "$defs" : {
110
+ "A" : {
111
+ "$anchor" : " /a/b" ,
112
+ "type" : " integer"
113
+ }
114
+ }
115
+ },
116
+ "tests" : [
117
+ {
118
+ "data" : 1 ,
119
+ "description" : " match" ,
120
+ "valid" : false
121
+ },
122
+ {
123
+ "data" : " a" ,
124
+ "description" : " mismatch" ,
125
+ "valid" : false
126
+ }
127
+ ]
86
128
}
87
129
]
You can’t perform that action at this time.
0 commit comments