public final class AnyOfKeywordValidator extends SchemaArrayKeywordValidator
anyOf keyword
An instance is valid against this keyword if and only if it is valid against at least one schema defined by its value.
subSchemaskeyword| Constructor and Description |
|---|
AnyOfKeywordValidator(JsonNode schema)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
protected void |
validate(ValidationContext context,
ValidationReport report,
JsonNode instance)
Method which all keyword validators must implement
|
alwaysTrue, newMsg, validateInstancepublic AnyOfKeywordValidator(JsonNode schema)
protected void validate(ValidationContext context, ValidationReport report, JsonNode instance)
KeywordValidatorvalidate in class KeywordValidatorcontext - the contextreport - the validation reportinstance - the instance to validatepublic String toString()
toString in class KeywordValidatorCopyright © 2013. All Rights Reserved.