File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 445445 }
446446 ]
447447 },
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+ },
448475 {
449476 "description" : " Location-independent identifier with base URI change in subschema" ,
450477 "schema" : {
Original file line number Diff line number Diff line change 445445 }
446446 ]
447447 },
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+ },
448475 {
449476 "description" : " Location-independent identifier with base URI change in subschema" ,
450477 "schema" : {
You can’t perform that action at this time.
0 commit comments