File tree 2 files changed +54
-0
lines changed
2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 445
445
}
446
446
]
447
447
},
448
+ {
449
+ "description" : " Reference an anchor with a non-relative URI" ,
450
+ "schema" : {
451
+ "$id" : " https://example.com/schema-with-anchor" ,
452
+ "allOf" : [{
453
+ "$ref" : " https://example.com/schema-with-anchor#foo"
454
+ }],
455
+ "definitions" : {
456
+ "A" : {
457
+ "$id" : " #foo" ,
458
+ "type" : " integer"
459
+ }
460
+ }
461
+ },
462
+ "tests" : [
463
+ {
464
+ "data" : 1 ,
465
+ "description" : " match" ,
466
+ "valid" : true
467
+ },
468
+ {
469
+ "data" : " a" ,
470
+ "description" : " mismatch" ,
471
+ "valid" : false
472
+ }
473
+ ]
474
+ },
448
475
{
449
476
"description" : " Location-independent identifier with base URI change in subschema" ,
450
477
"schema" : {
Original file line number Diff line number Diff line change 445
445
}
446
446
]
447
447
},
448
+ {
449
+ "description" : " Reference an anchor with a non-relative URI" ,
450
+ "schema" : {
451
+ "$id" : " https://example.com/schema-with-anchor" ,
452
+ "allOf" : [{
453
+ "$ref" : " https://example.com/schema-with-anchor#foo"
454
+ }],
455
+ "definitions" : {
456
+ "A" : {
457
+ "$id" : " #foo" ,
458
+ "type" : " integer"
459
+ }
460
+ }
461
+ },
462
+ "tests" : [
463
+ {
464
+ "data" : 1 ,
465
+ "description" : " match" ,
466
+ "valid" : true
467
+ },
468
+ {
469
+ "data" : " a" ,
470
+ "description" : " mismatch" ,
471
+ "valid" : false
472
+ }
473
+ ]
474
+ },
448
475
{
449
476
"description" : " Location-independent identifier with base URI change in subschema" ,
450
477
"schema" : {
You can’t perform that action at this time.
0 commit comments