Class ContentEncodingValidator

All Implemented Interfaces:
KeywordValidator, Validator, Walker

public class ContentEncodingValidator extends BaseKeywordValidator
KeywordValidator for contentEncoding.

Note that since 2019-09 this keyword only generates annotations and not errors.

  • Constructor Details

    • ContentEncodingValidator

      public ContentEncodingValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext)
      Constructor.
      Parameters:
      schemaLocation - the schema location
      schemaNode - the schema node
      parentSchema - the parent schema
      schemaContext - the schema context
  • Method Details

    • 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