File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -70,22 +70,22 @@ describe("resolve", () => {
70
70
71
71
it ( "should resolve fragment $id in schema refs when root $id not present" , ( ) => {
72
72
const schema = {
73
- " $schema" : "http://json-schema.org/draft-07/schema#" ,
74
- " definitions" : {
75
- " SeeAlso" : { " $id" : "#SeeAlso" , " type" : "number" } ,
76
- " Engine" : {
77
- " $id" : "#Engine" ,
78
- " type" : "object" ,
79
- " properties" : {
80
- " see_also" : { " $ref" : "#SeeAlso" }
81
- }
82
- }
83
- }
73
+ $schema : "http://json-schema.org/draft-07/schema#" ,
74
+ definitions : {
75
+ SeeAlso : { $id : "#SeeAlso" , type : "number" } ,
76
+ Engine : {
77
+ $id : "#Engine" ,
78
+ type : "object" ,
79
+ properties : {
80
+ see_also : { $ref : "#SeeAlso" } ,
81
+ } ,
82
+ } ,
83
+ } ,
84
84
}
85
85
86
86
instances . forEach ( ( ajv ) => {
87
87
ajv . addSchema ( schema , "yaml.json" )
88
- const data = { see_also : 1 }
88
+ const data = { see_also : 1 }
89
89
const validate = ajv . validate ( "yaml.json#/definitions/Engine" , data )
90
90
validate . should . equal ( true )
91
91
} )
You can’t perform that action at this time.
0 commit comments