File tree Expand file tree Collapse file tree 3 files changed +81
-0
lines changed Expand file tree Collapse file tree 3 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 296
296
"valid" : false
297
297
}
298
298
]
299
+ },
300
+ {
301
+ "description" : " refs with quote" ,
302
+ "schema" : {
303
+ "properties" : {
304
+ "foo\" bar" : {"$ref" : " #/definitions/foo\" bar" }
305
+ },
306
+ "definitions" : {
307
+ "foo\" bar" : {"type" : " number" }
308
+ }
309
+ },
310
+ "tests" : [
311
+ {
312
+ "description" : " object with numbers is valid" ,
313
+ "data" : {
314
+ "foo\" bar" : 1
315
+ },
316
+ "valid" : true
317
+ },
318
+ {
319
+ "description" : " object with strings is invalid" ,
320
+ "data" : {
321
+ "foo\" bar" : " 1"
322
+ },
323
+ "valid" : false
324
+ }
325
+ ]
299
326
}
300
327
]
Original file line number Diff line number Diff line change 328
328
"valid" : false
329
329
}
330
330
]
331
+ },
332
+ {
333
+ "description" : " refs with quote" ,
334
+ "schema" : {
335
+ "properties" : {
336
+ "foo\" bar" : {"$ref" : " #/definitions/foo\" bar" }
337
+ },
338
+ "definitions" : {
339
+ "foo\" bar" : {"type" : " number" }
340
+ }
341
+ },
342
+ "tests" : [
343
+ {
344
+ "description" : " object with numbers is valid" ,
345
+ "data" : {
346
+ "foo\" bar" : 1
347
+ },
348
+ "valid" : true
349
+ },
350
+ {
351
+ "description" : " object with strings is invalid" ,
352
+ "data" : {
353
+ "foo\" bar" : " 1"
354
+ },
355
+ "valid" : false
356
+ }
357
+ ]
331
358
}
332
359
]
Original file line number Diff line number Diff line change 328
328
"valid" : false
329
329
}
330
330
]
331
+ },
332
+ {
333
+ "description" : " refs with quote" ,
334
+ "schema" : {
335
+ "properties" : {
336
+ "foo\" bar" : {"$ref" : " #/definitions/foo\" bar" }
337
+ },
338
+ "definitions" : {
339
+ "foo\" bar" : {"type" : " number" }
340
+ }
341
+ },
342
+ "tests" : [
343
+ {
344
+ "description" : " object with numbers is valid" ,
345
+ "data" : {
346
+ "foo\" bar" : 1
347
+ },
348
+ "valid" : true
349
+ },
350
+ {
351
+ "description" : " object with strings is invalid" ,
352
+ "data" : {
353
+ "foo\" bar" : " 1"
354
+ },
355
+ "valid" : false
356
+ }
357
+ ]
331
358
}
332
359
]
You can’t perform that action at this time.
0 commit comments