public final class MaxPropertiesKeywordValidator extends PositiveIntegerKeywordValidator
maxProperties keyword
This keyword is not defined by draft v3, and a candidate for the next
draft. It places au upper constraint on the number of members of an object
instance in the same manner than maxItems does for array instances.
intValuekeyword, nodeFactory| Constructor and Description |
|---|
MaxPropertiesKeywordValidator(JsonNode schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(ValidationContext context,
ValidationReport report,
JsonNode instance)
Method which all keyword validators must implement
|
toStringalwaysTrue, newMsg, validateInstancepublic MaxPropertiesKeywordValidator(JsonNode schema)
public void validate(ValidationContext context, ValidationReport report, JsonNode instance)
KeywordValidatorvalidate in class KeywordValidatorcontext - the contextreport - the validation reportinstance - the instance to validateCopyright © 2012. All Rights Reserved.