public final class AdditionalPropertiesKeywordValidator extends KeywordValidator
additionalProperties
Note that this keyword only handles validation at the instance level: it does not validate children.
The rules are:
additionalProperties is a schema or true,
validation succeeds;false, then validation succeeds if and only if all
instance members are either members in properties or match at
least one regex of patternProperties.keyword| Constructor and Description |
|---|
AdditionalPropertiesKeywordValidator(JsonNode schema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alwaysTrue() |
String |
toString() |
void |
validate(ValidationContext context,
ValidationReport report,
JsonNode instance)
Method which all keyword validators must implement
|
newMsg, validateInstancepublic AdditionalPropertiesKeywordValidator(JsonNode schema)
public void validate(ValidationContext context, ValidationReport report, JsonNode instance)
KeywordValidatorvalidate in class KeywordValidatorcontext - the contextreport - the validation reportinstance - the instance to validatepublic boolean alwaysTrue()
alwaysTrue in class KeywordValidatorpublic String toString()
toString in class KeywordValidatorCopyright © 2013. All Rights Reserved.