public final class UniqueItemsKeywordValidator extends KeywordValidator
uniqueItems keyword
Note: validation of numeric array elements conform to the definition of
equality by JSON Schema. That is, 1 and 1.0 are considered
equal.
keyword| Constructor and Description |
|---|
UniqueItemsKeywordValidator(JsonNode schema) |
| 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 UniqueItemsKeywordValidator(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.