Interface SchemaIdValidator

All Known Implementing Classes:
SchemaIdValidator.DefaultSchemaIdValidator

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

  • Method Details

    • validate

      boolean validate(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, SchemaContext schemaContext)
      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
      schemaContext - the schema context for instance to get the meta schema
      Returns:
      true if valid