File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ runTest(4);
15
15
runTest ( 6 ) ;
16
16
17
17
function runTest ( draft ) {
18
- var opts = { } ;
18
+ var opts = { format : 'full' } ;
19
19
if ( draft == 4 ) opts . meta = false ;
20
20
var ajv = new Ajv ( opts ) ;
21
21
ajv . addMetaSchema ( require ( 'ajv/lib/refs/json-schema-draft-04.json' ) ) ;
Original file line number Diff line number Diff line change 21
21
},
22
22
"homepage" : " https://github.com/json-schema-org/JSON-Schema-Test-Suite#readme" ,
23
23
"devDependencies" : {
24
- "ajv" : " ^5.0.4-beta.0 " ,
24
+ "ajv" : " ^5.0.4-beta.1 " ,
25
25
"json-schema-test" : " ^1.3.0" ,
26
26
"mocha" : " ^3.2.0"
27
27
}
Original file line number Diff line number Diff line change 79
79
"description" : " a valid URI Reference" ,
80
80
"data" : " abc" ,
81
81
"valid" : true
82
+ },
83
+ {
84
+ "description" : " a valid URI fragment" ,
85
+ "data" : " #fragment" ,
86
+ "valid" : true
87
+ },
88
+ {
89
+ "description" : " an invalid URI fragment" ,
90
+ "data" : " #frag\\ ment" ,
91
+ "valid" : false
82
92
}
83
93
]
84
94
},
97
107
"description" : " an invalid uri-template" ,
98
108
"data" : " http://example.com/dictionary/{term:1}/{term" ,
99
109
"valid" : false
110
+ },
111
+ {
112
+ "description" : " a valid uri-template without variables" ,
113
+ "data" : " http://example.com/dictionary" ,
114
+ "valid" : true
115
+ },
116
+ {
117
+ "description" : " a valid relative uri-template" ,
118
+ "data" : " dictionary/{term:1}/{term}" ,
119
+ "valid" : true
100
120
}
101
121
]
102
122
},
You can’t perform that action at this time.
0 commit comments