public final class DraftV3PropertiesKeywordValidator extends KeywordValidator
properties keyword
Again, it should be reminded that this only handles validation at the instance level: this keyword will not validate children nodes.
The particular item being validated is required in subschemas: if
this keyword is present, it means that the object instance must have a
property by that name.
keyword| Constructor and Description |
|---|
DraftV3PropertiesKeywordValidator(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 DraftV3PropertiesKeywordValidator(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.