From 967844fc66486d5475aa82e7bab200119c57d313 Mon Sep 17 00:00:00 2001 From: anicolasgar Date: Mon, 23 Nov 2020 00:02:50 -0300 Subject: [PATCH] Add 'anchor' and 'deprecated' as NonValidationKeywords for v2019-09 draft --- src/main/java/com/networknt/schema/JsonMetaSchema.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/networknt/schema/JsonMetaSchema.java b/src/main/java/com/networknt/schema/JsonMetaSchema.java index fd88b2db6..80349193c 100644 --- a/src/main/java/com/networknt/schema/JsonMetaSchema.java +++ b/src/main/java/com/networknt/schema/JsonMetaSchema.java @@ -176,7 +176,9 @@ public static JsonMetaSchema getInstance() { new NonValidationKeyword("default"), new NonValidationKeyword("definitions"), new NonValidationKeyword("$comment"), - new NonValidationKeyword("$defs"), // newly added in 2018-09 release. + new NonValidationKeyword("$defs"), // newly added in 2019-09 release. + new NonValidationKeyword("$anchor"), + new NonValidationKeyword("deprecated"), new NonValidationKeyword("contentMediaType"), new NonValidationKeyword("contentEncoding"), new NonValidationKeyword("examples")