Skip to content

Commit cfd0e6d

Browse files
committed
Rename PROPERTYNAMES KeywordType to PROPERTY_NAMES
1 parent 5a971af commit cfd0e6d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/com/networknt/schema/keyword/KeywordType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public enum KeywordType implements Keyword {
8080
PREFIX_ITEMS("prefixItems", PrefixItemsValidator::new, SpecificationVersionRange.None),
8181
PROPERTIES("properties", PropertiesValidator::new, SpecificationVersionRange.MaxV7),
8282
PROPERTY_DEPENDENCIES("propertyDependencies", PropertyDependenciesValidator::new, SpecificationVersionRange.None),
83-
PROPERTYNAMES("propertyNames", PropertyNamesValidator::new, SpecificationVersionRange.MinV6MaxV7),
83+
PROPERTY_NAMES("propertyNames", PropertyNamesValidator::new, SpecificationVersionRange.MinV6MaxV7),
8484
READ_ONLY("readOnly", ReadOnlyValidator::new, SpecificationVersionRange.V7),
8585
RECURSIVE_REF("$recursiveRef", RecursiveRefValidator::new, SpecificationVersionRange.None),
8686
REF("$ref", RefValidator::new, SpecificationVersionRange.MaxV7),

src/main/java/com/networknt/schema/keyword/PropertyNamesValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
public class PropertyNamesValidator extends BaseKeywordValidator implements KeywordValidator {
3232
private final Schema innerSchema;
3333
public PropertyNamesValidator(SchemaLocation schemaLocation, NodePath evaluationPath, JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext) {
34-
super(KeywordType.PROPERTYNAMES, schemaNode, schemaLocation, parentSchema, schemaContext, evaluationPath);
34+
super(KeywordType.PROPERTY_NAMES, schemaNode, schemaLocation, parentSchema, schemaContext, evaluationPath);
3535
innerSchema = schemaContext.newSchema(schemaLocation, evaluationPath, schemaNode, parentSchema);
3636
}
3737

src/main/java/com/networknt/schema/vocabulary/Vocabulary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ KeywordType.REF, KeywordType.RECURSIVE_REF, new NonValidationKeyword("$recursive
4343
KeywordType.UNEVALUATED_ITEMS, KeywordType.ITEMS_LEGACY, KeywordType.CONTAINS,
4444
KeywordType.ADDITIONAL_PROPERTIES, KeywordType.UNEVALUATED_PROPERTIES,
4545
KeywordType.PROPERTIES, KeywordType.PATTERN_PROPERTIES, KeywordType.DEPENDENT_SCHEMAS,
46-
KeywordType.PROPERTYNAMES, KeywordType.IF_THEN_ELSE, new NonValidationKeyword("then"),
46+
KeywordType.PROPERTY_NAMES, KeywordType.IF_THEN_ELSE, new NonValidationKeyword("then"),
4747
new NonValidationKeyword("else"), KeywordType.ALL_OF, KeywordType.ANY_OF,
4848
KeywordType.ONE_OF, KeywordType.NOT);
4949
public static final Vocabulary DRAFT_2019_09_VALIDATION = new Vocabulary(
@@ -75,7 +75,7 @@ KeywordType.PROPERTYNAMES, KeywordType.IF_THEN_ELSE, new NonValidationKeyword("t
7575
"https://json-schema.org/draft/2020-12/vocab/applicator", KeywordType.PREFIX_ITEMS,
7676
KeywordType.ITEMS, KeywordType.CONTAINS, KeywordType.ADDITIONAL_PROPERTIES,
7777
KeywordType.PROPERTIES, KeywordType.PATTERN_PROPERTIES, KeywordType.DEPENDENT_SCHEMAS,
78-
KeywordType.PROPERTYNAMES, KeywordType.IF_THEN_ELSE, new NonValidationKeyword("then"),
78+
KeywordType.PROPERTY_NAMES, KeywordType.IF_THEN_ELSE, new NonValidationKeyword("then"),
7979
new NonValidationKeyword("else"), KeywordType.ALL_OF, KeywordType.ANY_OF,
8080
KeywordType.ONE_OF, KeywordType.NOT);
8181
public static final Vocabulary DRAFT_2020_12_UNEVALUATED = new Vocabulary(

0 commit comments

Comments
 (0)