File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/java/com/networknt/schema
test/java/com/networknt/schema Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ public static JsonMetaSchema getInstance() {
151151 }
152152
153153 private static class V201909 {
154- private static String URI = "http ://json-schema.org/draft/2019-09/schema# " ;
154+ private static String URI = "https ://json-schema.org/draft/2019-09/schema" ;
155155 private static final String ID = "$id" ;
156156
157157 public static final List <Format > BUILTIN_FORMATS = new ArrayList <>(JsonMetaSchema .COMMON_BUILTIN_FORMATS );
@@ -172,7 +172,8 @@ public static JsonMetaSchema getInstance() {
172172 new NonValidationKeyword ("title" ),
173173 new NonValidationKeyword ("description" ),
174174 new NonValidationKeyword ("default" ),
175- new NonValidationKeyword ("definitions" )
175+ new NonValidationKeyword ("definitions" ),
176+ new NonValidationKeyword ("$defs" ) // newly added in 2018-09 release.
176177 ))
177178 .build ();
178179 }
Original file line number Diff line number Diff line change @@ -267,9 +267,8 @@ public void testDefaultValidator() throws Exception {
267267 }
268268
269269 @ Test
270- @ Ignore
271270 public void testDefsValidator () throws Exception {
272- runTestFile ("draft7/defs .json" );
271+ runTestFile ("draft7/definitions .json" );
273272 }
274273
275274 @ Test
You can’t perform that action at this time.
0 commit comments