Skip to content

Commit 63b0c8c

Browse files
committed
fixes #232 update meta schema URI to https
1 parent ac46cee commit 63b0c8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/networknt/schema/JsonMetaSchema.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/test/java/com/networknt/schema/V7JsonSchemaTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)