You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// keywords that may validly exist, but have no validation aspect to them
82
+
.addKeywords(Arrays.asList(
83
+
newNonValidationKeyword("$schema"),
84
+
newNonValidationKeyword("id"),
85
+
newNonValidationKeyword("title"),
86
+
newNonValidationKeyword("description"),
87
+
newNonValidationKeyword("default"),
88
+
newNonValidationKeyword("definitions")
89
+
))
79
90
.build();
80
91
}
81
92
}
@@ -221,7 +232,10 @@ public Optional<JsonValidator> newValidator(ValidationContext validationContext,
221
232
try {
222
233
Keywordkw = keywords.get(keyword);
223
234
if (kw == null) {
224
-
logger.warn("Unknown keyword " + keyword);
235
+
if (!UNKNOWN_KEYWORDS.containsKey(keyword)) {
236
+
UNKNOWN_KEYWORDS.put(keyword, keyword);
237
+
logger.warn("Unknown keyword " + keyword + " - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword");
0 commit comments