File tree 3 files changed +27
-90
lines changed
3 files changed +27
-90
lines changed Original file line number Diff line number Diff line change 300
300
{
301
301
"description" : " Location-independent identifier" ,
302
302
"schema" : {
303
- "$ref" : " #foo" ,
303
+ "allOf" : [{
304
+ "$ref" : " #foo"
305
+ }],
304
306
"definitions" : {
305
307
"A" : {
306
308
"id" : " #foo" ,
324
326
{
325
327
"description" : " Canonical location-independent identifier" ,
326
328
"schema" : {
327
- "$ref" : " http://localhost:1234/bar#foo" ,
329
+ "allOf" : [{
330
+ "$ref" : " http://localhost:1234/bar#foo"
331
+ }],
328
332
"definitions" : {
329
333
"A" : {
330
334
"id" : " http://localhost:1234/bar#foo" ,
349
353
"description" : " Location-independent identifier with base URI change in subschema" ,
350
354
"schema" : {
351
355
"id" : " http://localhost:1234/root" ,
352
- "$ref" : " http://localhost:1234/nested.json#foo" ,
356
+ "allOf" : [{
357
+ "$ref" : " http://localhost:1234/nested.json#foo"
358
+ }],
353
359
"definitions" : {
354
360
"A" : {
355
361
"id" : " nested.json" ,
374
380
"valid" : false
375
381
}
376
382
]
377
- },
378
- {
379
- "description" : " Location-independent identifiers should take precedent over regular fragments" ,
380
- "schema" : {
381
- "$ref" : " #foo" ,
382
- "definitions" : {
383
- "A" : {
384
- "id" : " #foo" ,
385
- "type" : " integer"
386
- }
387
- },
388
- "foo" : {
389
- "type" : " string"
390
- }
391
- },
392
- "tests" : [
393
- {
394
- "data" : 1 ,
395
- "description" : " match" ,
396
- "valid" : true
397
- },
398
- {
399
- "data" : " a" ,
400
- "description" : " mismatch" ,
401
- "valid" : false
402
- }
403
- ]
404
383
}
405
384
]
Original file line number Diff line number Diff line change 332
332
{
333
333
"description" : " Location-independent identifier" ,
334
334
"schema" : {
335
- "$ref" : " #foo" ,
335
+ "allOf" : [{
336
+ "$ref" : " #foo"
337
+ }],
336
338
"definitions" : {
337
339
"A" : {
338
340
"$id" : " #foo" ,
356
358
{
357
359
"description" : " Canonical location-independent identifier" ,
358
360
"schema" : {
359
- "$ref" : " http://localhost:1234/bar#foo" ,
361
+ "allOf" : [{
362
+ "$ref" : " http://localhost:1234/bar#foo"
363
+ }],
360
364
"definitions" : {
361
365
"A" : {
362
366
"$id" : " http://localhost:1234/bar#foo" ,
381
385
"description" : " Location-independent identifier with base URI change in subschema" ,
382
386
"schema" : {
383
387
"$id" : " http://localhost:1234/root" ,
384
- "$ref" : " http://localhost:1234/nested.json#foo" ,
388
+ "allOf" : [{
389
+ "$ref" : " http://localhost:1234/nested.json#foo"
390
+ }],
385
391
"definitions" : {
386
392
"A" : {
387
393
"$id" : " nested.json" ,
406
412
"valid" : false
407
413
}
408
414
]
409
- },
410
- {
411
- "description" : " Location-independent identifiers should take precedent over regular fragments" ,
412
- "schema" : {
413
- "$ref" : " #foo" ,
414
- "definitions" : {
415
- "A" : {
416
- "$id" : " #foo" ,
417
- "type" : " integer"
418
- }
419
- },
420
- "foo" : {
421
- "type" : " string"
422
- }
423
- },
424
- "tests" : [
425
- {
426
- "data" : 1 ,
427
- "description" : " match" ,
428
- "valid" : true
429
- },
430
- {
431
- "data" : " a" ,
432
- "description" : " mismatch" ,
433
- "valid" : false
434
- }
435
- ]
436
415
}
437
416
]
Original file line number Diff line number Diff line change 332
332
{
333
333
"description" : " Location-independent identifier" ,
334
334
"schema" : {
335
- "$ref" : " #foo" ,
335
+ "allOf" : [{
336
+ "$ref" : " #foo"
337
+ }],
336
338
"definitions" : {
337
339
"A" : {
338
340
"$id" : " #foo" ,
356
358
{
357
359
"description" : " Canonical location-independent identifier" ,
358
360
"schema" : {
359
- "$ref" : " http://localhost:1234/bar#foo" ,
361
+ "allOf" : [{
362
+ "$ref" : " http://localhost:1234/bar#foo"
363
+ }],
360
364
"definitions" : {
361
365
"A" : {
362
366
"$id" : " http://localhost:1234/bar#foo" ,
381
385
"description" : " Location-independent identifier with base URI change in subschema" ,
382
386
"schema" : {
383
387
"$id" : " http://localhost:1234/root" ,
384
- "$ref" : " http://localhost:1234/nested.json#foo" ,
388
+ "allOf" : [{
389
+ "$ref" : " http://localhost:1234/nested.json#foo"
390
+ }],
385
391
"definitions" : {
386
392
"A" : {
387
393
"$id" : " nested.json" ,
406
412
"valid" : false
407
413
}
408
414
]
409
- },
410
- {
411
- "description" : " Location-independent identifiers should take precedent over regular fragments" ,
412
- "schema" : {
413
- "$ref" : " #foo" ,
414
- "definitions" : {
415
- "A" : {
416
- "$id" : " #foo" ,
417
- "type" : " integer"
418
- }
419
- },
420
- "foo" : {
421
- "type" : " string"
422
- }
423
- },
424
- "tests" : [
425
- {
426
- "data" : 1 ,
427
- "description" : " match" ,
428
- "valid" : true
429
- },
430
- {
431
- "data" : " a" ,
432
- "description" : " mismatch" ,
433
- "valid" : false
434
- }
435
- ]
436
415
}
437
416
]
You can’t perform that action at this time.
0 commit comments