Interface JsonSchemaIdValidator

All Known Implementing Classes:
JsonSchemaIdValidator.DefaultJsonSchemaIdValidator

public interface JsonSchemaIdValidator
Validator for validating the correctness of $id.
  • Field Details

  • Method Details

    • validate

      boolean validate(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, ValidationContext validationContext)
      Validates if the $id value is valid.
      Parameters:
      id - the $id or id
      rootSchema - true if this is a root schema
      schemaLocation - the schema location
      resolvedSchemaLocation - the schema location after resolving with the id
      validationContext - the validation context for instance to get the meta schema
      Returns:
      true if valid