public class MinMaxContainsValidator extends BaseJsonValidator
This validator only checks that the schema is valid. The functionality for
testing whether an instance array conforms to the maxContains
and minContains constraints exists within ContainsValidator
.
applyDefaultsStrategy, failFast, parentSchema, schemaNode, schemaPath, validationContext
Constructor and Description |
---|
MinMaxContainsValidator(String schemaPath,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema parentSchema,
ValidationContext validationContext) |
Modifier and Type | Method and Description |
---|---|
Set<ValidationMessage> |
validate(com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode rootNode,
String at)
Validate the given JsonNode, the given node is the child node of the root node at given
data path.
|
atPath, atPath, atRoot, buildValidationMessage, checkDiscriminatorMatch, constructValidationMessage, debug, equals, fetchSubSchemaNode, getNodeFieldType, getParentSchema, getPathType, getSchemaNode, getSchemaPath, getValidatorType, greaterThan, isPartOfOneOfMultipleType, lessThan, parseErrorCode, preloadJsonSchemas, registerAndMergeDiscriminator, validate, walk
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
preloadJsonSchema
public MinMaxContainsValidator(String schemaPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)
public Set<ValidationMessage> validate(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at)
JsonValidator
node
- JsonNoderootNode
- JsonNodeat
- StringCopyright © 2023. All rights reserved.