File tree Expand file tree Collapse file tree 7 files changed +136
-0
lines changed Expand file tree Collapse file tree 7 files changed +136
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,28 @@ REMOTES = {
51
51
u"refToInteger" : {u"$ref" : u"#/$defs/integer" },
52
52
}
53
53
},
54
+ "ref-and-defs.json" : {
55
+ u"$id" : u"ref-and-defs.json" ,
56
+ u"$defs" : {
57
+ u"inner" : {
58
+ u"properties" : {
59
+ u"bar" : {u"type" : u"string" }
60
+ }
61
+ }
62
+ },
63
+ u"$ref" : u"#/$defs/inner"
64
+ },
65
+ "ref-and-definitions.json" : {
66
+ u"$id" : u"ref-and-definitions.json" ,
67
+ u"definitions" : {
68
+ u"inner" : {
69
+ u"properties" : {
70
+ u"bar" : {u"type" : u"string" }
71
+ }
72
+ }
73
+ },
74
+ u"$ref" : u"#/definitions/inner"
75
+ },
54
76
"baseUriChange/folderInteger.json" : {u"type" : u"integer" },
55
77
"baseUriChangeFolder/folderInteger.json" : {u"type" : u"integer" },
56
78
"baseUriChangeFolderInSubschema/folderInteger.json" : {u"type" : u"integer" },
Original file line number Diff line number Diff line change
1
+ {
2
+ "$id" : " ref-and-definitions.json" ,
3
+ "definitions" : {
4
+ "inner" : {
5
+ "properties" : {
6
+ "bar" : { "type" : " string" }
7
+ }
8
+ }
9
+ },
10
+ "$ref" : " #/definitions/inner"
11
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "$id" : " ref-and-defs.json" ,
3
+ "$defs" : {
4
+ "inner" : {
5
+ "properties" : {
6
+ "bar" : { "type" : " string" }
7
+ }
8
+ }
9
+ },
10
+ "$ref" : " #/$defs/inner"
11
+ }
Original file line number Diff line number Diff line change 163
163
"valid" : false
164
164
}
165
165
]
166
+ },
167
+ {
168
+ "description" : " remote ref with ref to defs" ,
169
+ "schema" : {
170
+ "$id" : " http://localhost:1234/schema1.json" ,
171
+ "$ref" : " ref-and-defs.json"
172
+ },
173
+ "tests" : [
174
+ {
175
+ "description" : " invalid" ,
176
+ "data" : {
177
+ "bar" : 1
178
+ },
179
+ "valid" : false
180
+ },
181
+ {
182
+ "description" : " valid" ,
183
+ "data" : {
184
+ "bar" : " a"
185
+ },
186
+ "valid" : true
187
+ }
188
+ ]
166
189
}
167
190
]
Original file line number Diff line number Diff line change 163
163
"valid" : false
164
164
}
165
165
]
166
+ },
167
+ {
168
+ "description" : " remote ref with ref to defs" ,
169
+ "schema" : {
170
+ "$id" : " http://localhost:1234/schema1.json" ,
171
+ "$ref" : " ref-and-defs.json"
172
+ },
173
+ "tests" : [
174
+ {
175
+ "description" : " invalid" ,
176
+ "data" : {
177
+ "bar" : 1
178
+ },
179
+ "valid" : false
180
+ },
181
+ {
182
+ "description" : " valid" ,
183
+ "data" : {
184
+ "bar" : " a"
185
+ },
186
+ "valid" : true
187
+ }
188
+ ]
166
189
}
167
190
]
Original file line number Diff line number Diff line change 167
167
"valid" : false
168
168
}
169
169
]
170
+ },
171
+ {
172
+ "description" : " remote ref with ref to definitions" ,
173
+ "schema" : {
174
+ "$id" : " http://localhost:1234/schema1.json" ,
175
+ "$ref" : " ref-and-definitions.json"
176
+ },
177
+ "tests" : [
178
+ {
179
+ "description" : " invalid" ,
180
+ "data" : {
181
+ "bar" : 1
182
+ },
183
+ "valid" : false
184
+ },
185
+ {
186
+ "description" : " valid" ,
187
+ "data" : {
188
+ "bar" : " a"
189
+ },
190
+ "valid" : true
191
+ }
192
+ ]
170
193
}
171
194
]
Original file line number Diff line number Diff line change 167
167
"valid" : false
168
168
}
169
169
]
170
+ },
171
+ {
172
+ "description" : " remote ref with ref to definitions" ,
173
+ "schema" : {
174
+ "$id" : " http://localhost:1234/schema1.json" ,
175
+ "$ref" : " ref-and-definitions.json"
176
+ },
177
+ "tests" : [
178
+ {
179
+ "description" : " invalid" ,
180
+ "data" : {
181
+ "bar" : 1
182
+ },
183
+ "valid" : false
184
+ },
185
+ {
186
+ "description" : " valid" ,
187
+ "data" : {
188
+ "bar" : " a"
189
+ },
190
+ "valid" : true
191
+ }
192
+ ]
170
193
}
171
194
]
You can’t perform that action at this time.
0 commit comments