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() {
151
151
}
152
152
153
153
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" ;
155
155
private static final String ID = "$id" ;
156
156
157
157
public static final List <Format > BUILTIN_FORMATS = new ArrayList <>(JsonMetaSchema .COMMON_BUILTIN_FORMATS );
@@ -172,7 +172,8 @@ public static JsonMetaSchema getInstance() {
172
172
new NonValidationKeyword ("title" ),
173
173
new NonValidationKeyword ("description" ),
174
174
new NonValidationKeyword ("default" ),
175
- new NonValidationKeyword ("definitions" )
175
+ new NonValidationKeyword ("definitions" ),
176
+ new NonValidationKeyword ("$defs" ) // newly added in 2018-09 release.
176
177
))
177
178
.build ();
178
179
}
Original file line number Diff line number Diff line change @@ -267,9 +267,8 @@ public void testDefaultValidator() throws Exception {
267
267
}
268
268
269
269
@ Test
270
- @ Ignore
271
270
public void testDefsValidator () throws Exception {
272
- runTestFile ("draft7/defs .json" );
271
+ runTestFile ("draft7/definitions .json" );
273
272
}
274
273
275
274
@ Test
You can’t perform that action at this time.
0 commit comments