From 3e55477e23ab98d0ef810d92e5c39cad02d4c106 Mon Sep 17 00:00:00 2001 From: Sebastian Toepfer <61313468+sebastian-toepfer@users.noreply.github.com> Date: Tue, 3 Oct 2023 23:59:57 +0200 Subject: [PATCH] improve $vocabulary keyword --- .../core/vocab/core/VocabularyKeywordType.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/io/github/sebastiantoepfer/jsonschema/core/vocab/core/VocabularyKeywordType.java b/core/src/main/java/io/github/sebastiantoepfer/jsonschema/core/vocab/core/VocabularyKeywordType.java index 92177c7f..c7344eec 100644 --- a/core/src/main/java/io/github/sebastiantoepfer/jsonschema/core/vocab/core/VocabularyKeywordType.java +++ b/core/src/main/java/io/github/sebastiantoepfer/jsonschema/core/vocab/core/VocabularyKeywordType.java @@ -75,13 +75,14 @@ public final class VocabularyKeyword implements Keyword, VocabularyDefinitions { } @Override - public Collection categories() { - return List.of(); + public boolean hasName(final String name) { + return Objects.equals(name(), name); } @Override - public boolean hasName(final String name) { - return Objects.equals(name(), name); + public Collection categories() { + //is a identifier after spec ... but how to implement it as it? + return List.of(); } @Override