From e71502805cf2aba5a1548bc9d399bad723d2dae6 Mon Sep 17 00:00:00 2001 From: Sebastian Toepfer <61313468+sebastian-toepfer@users.noreply.github.com> Date: Wed, 29 May 2024 22:35:04 +0200 Subject: [PATCH] add support for propertyNames keyword --- core/pom.xml | 1 + .../jsonschema/core/Keywords.java | 2 +- .../core/vocab/OfficialVocabularies.java | 2 +- .../applicator/ApplicatorVocabulary.java | 4 +- .../core/vocab/applicator/PropertyNames.java | 79 ++++++++++++++++ .../applicator/ApplicatorVocabularyTest.java | 3 +- .../vocab/applicator/PropertyNamesTest.java | 93 +++++++++++++++++++ 7 files changed, 180 insertions(+), 4 deletions(-) create mode 100644 core/src/main/java/io/github/sebastiantoepfer/jsonschema/core/vocab/applicator/PropertyNames.java create mode 100644 core/src/test/java/io/github/sebastiantoepfer/jsonschema/core/vocab/applicator/PropertyNamesTest.java diff --git a/core/pom.xml b/core/pom.xml index 5fce5ef1..590b5e63 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -157,6 +157,7 @@ **/tests/draft2020-12/patternProperties.json **/tests/draft2020-12/prefixItems.json **/tests/draft2020-12/properties.json + **/tests/draft2020-12/propertyNames.json