Class MinMaxContainsValidator

  • All Implemented Interfaces:
    KeywordValidator, Validator, Walker

    public class MinMaxContainsValidator
    extends BaseKeywordValidator
    KeywordValidator for maxContains and minContains in a schema.

    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.

    • Constructor Detail

      • MinMaxContainsValidator

        public MinMaxContainsValidator​(SchemaLocation schemaLocation,
                                       com.fasterxml.jackson.databind.JsonNode schemaNode,
                                       Schema parentSchema,
                                       SchemaContext schemaContext)
    • Method Detail

      • validate

        public void validate​(ExecutionContext executionContext,
                             com.fasterxml.jackson.databind.JsonNode node,
                             com.fasterxml.jackson.databind.JsonNode rootNode,
                             NodePath instanceLocation)
        Description copied from interface: Validator
        Validate the instance node which belongs to the instance document at the instance location.
        Parameters:
        executionContext - the execution context
        node - the instance node being processed
        rootNode - the instance document that the instance node belongs to
        instanceLocation - the location of the instance node being processed