File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ runTest(4);
1515runTest ( 6 ) ;
1616
1717function runTest ( draft ) {
18- var opts = { } ;
18+ var opts = { format : 'full' } ;
1919 if ( draft == 4 ) opts . meta = false ;
2020 var ajv = new Ajv ( opts ) ;
2121 ajv . addMetaSchema ( require ( 'ajv/lib/refs/json-schema-draft-04.json' ) ) ;
Original file line number Diff line number Diff line change 2121 },
2222 "homepage" : " https://github.com/json-schema-org/JSON-Schema-Test-Suite#readme" ,
2323 "devDependencies" : {
24- "ajv" : " ^5.0.4-beta.0 " ,
24+ "ajv" : " ^5.0.4-beta.1 " ,
2525 "json-schema-test" : " ^1.3.0" ,
2626 "mocha" : " ^3.2.0"
2727 }
Original file line number Diff line number Diff line change 7979 "description" : " a valid URI Reference" ,
8080 "data" : " abc" ,
8181 "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
8292 }
8393 ]
8494 },
97107 "description" : " an invalid uri-template" ,
98108 "data" : " http://example.com/dictionary/{term:1}/{term" ,
99109 "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
100120 }
101121 ]
102122 },
You can’t perform that action at this time.
0 commit comments