File tree 5 files changed +125
-0
lines changed
5 files changed +125
-0
lines changed Original file line number Diff line number Diff line change 211
211
}
212
212
]
213
213
},
214
+ {
215
+ "description" : " property named $ref, containing an actual $ref" ,
216
+ "schema" : {
217
+ "properties" : {
218
+ "$ref" : {"$ref" : " #/$defs/is-string" }
219
+ },
220
+ "$defs" : {
221
+ "is-string" : {
222
+ "type" : " string"
223
+ }
224
+ }
225
+ },
226
+ "tests" : [
227
+ {
228
+ "description" : " property named $ref valid" ,
229
+ "data" : {"$ref" : " a" },
230
+ "valid" : true
231
+ },
232
+ {
233
+ "description" : " property named $ref invalid" ,
234
+ "data" : {"$ref" : 2 },
235
+ "valid" : false
236
+ }
237
+ ]
238
+ },
214
239
{
215
240
"description" : " $ref to boolean schema true" ,
216
241
"schema" : {
Original file line number Diff line number Diff line change 173
173
}
174
174
]
175
175
},
176
+ {
177
+ "description" : " property named $ref, containing an actual $ref" ,
178
+ "schema" : {
179
+ "properties" : {
180
+ "$ref" : {"$ref" : " #/definitions/is-string" }
181
+ },
182
+ "definitions" : {
183
+ "is-string" : {
184
+ "type" : " string"
185
+ }
186
+ }
187
+ },
188
+ "tests" : [
189
+ {
190
+ "description" : " property named $ref valid" ,
191
+ "data" : {"$ref" : " a" },
192
+ "valid" : true
193
+ },
194
+ {
195
+ "description" : " property named $ref invalid" ,
196
+ "data" : {"$ref" : 2 },
197
+ "valid" : false
198
+ }
199
+ ]
200
+ },
176
201
{
177
202
"description" : " remote ref, containing refs itself" ,
178
203
"schema" : {"$ref" : " http://json-schema.org/draft-03/schema#" },
Original file line number Diff line number Diff line change 209
209
}
210
210
]
211
211
},
212
+ {
213
+ "description" : " property named $ref, containing an actual $ref" ,
214
+ "schema" : {
215
+ "properties" : {
216
+ "$ref" : {"$ref" : " #/definitions/is-string" }
217
+ },
218
+ "definitions" : {
219
+ "is-string" : {
220
+ "type" : " string"
221
+ }
222
+ }
223
+ },
224
+ "tests" : [
225
+ {
226
+ "description" : " property named $ref valid" ,
227
+ "data" : {"$ref" : " a" },
228
+ "valid" : true
229
+ },
230
+ {
231
+ "description" : " property named $ref invalid" ,
232
+ "data" : {"$ref" : 2 },
233
+ "valid" : false
234
+ }
235
+ ]
236
+ },
212
237
{
213
238
"description" : " Recursive references between schemas" ,
214
239
"schema" : {
Original file line number Diff line number Diff line change 209
209
}
210
210
]
211
211
},
212
+ {
213
+ "description" : " property named $ref, containing an actual $ref" ,
214
+ "schema" : {
215
+ "properties" : {
216
+ "$ref" : {"$ref" : " #/definitions/is-string" }
217
+ },
218
+ "definitions" : {
219
+ "is-string" : {
220
+ "type" : " string"
221
+ }
222
+ }
223
+ },
224
+ "tests" : [
225
+ {
226
+ "description" : " property named $ref valid" ,
227
+ "data" : {"$ref" : " a" },
228
+ "valid" : true
229
+ },
230
+ {
231
+ "description" : " property named $ref invalid" ,
232
+ "data" : {"$ref" : 2 },
233
+ "valid" : false
234
+ }
235
+ ]
236
+ },
212
237
{
213
238
"description" : " $ref to boolean schema true" ,
214
239
"schema" : {
Original file line number Diff line number Diff line change 209
209
}
210
210
]
211
211
},
212
+ {
213
+ "description" : " property named $ref, containing an actual $ref" ,
214
+ "schema" : {
215
+ "properties" : {
216
+ "$ref" : {"$ref" : " #/definitions/is-string" }
217
+ },
218
+ "definitions" : {
219
+ "is-string" : {
220
+ "type" : " string"
221
+ }
222
+ }
223
+ },
224
+ "tests" : [
225
+ {
226
+ "description" : " property named $ref valid" ,
227
+ "data" : {"$ref" : " a" },
228
+ "valid" : true
229
+ },
230
+ {
231
+ "description" : " property named $ref invalid" ,
232
+ "data" : {"$ref" : 2 },
233
+ "valid" : false
234
+ }
235
+ ]
236
+ },
212
237
{
213
238
"description" : " $ref to boolean schema true" ,
214
239
"schema" : {
You can’t perform that action at this time.
0 commit comments