Class AnnotationKeyword

java.lang.Object
com.networknt.schema.keyword.AbstractKeyword
com.networknt.schema.keyword.AnnotationKeyword
All Implemented Interfaces:
Keyword

public class AnnotationKeyword extends AbstractKeyword
Used for Keywords that have no validation aspect, but are part of the metaschema, where annotations may need to be collected.
  • Constructor Details

    • AnnotationKeyword

      public AnnotationKeyword(String keyword)
  • Method Details

    • newValidator

      public KeywordValidator newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext)
      Description copied from interface: Keyword
      Creates a new validator for the keyword.
      Parameters:
      schemaLocation - the schema location
      schemaNode - the schema node
      parentSchema - the parent schema
      schemaContext - the schema context
      Returns:
      the validation