Interface JsonSchemaValidator

All Known Implementing Classes:
NetworkntJsonSchemaValidator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JsonSchemaValidator
Validates JSON data against a JSON Schema.
Author:
Konstantin Pavlov
  • Method Details

    • validate

      List<SchemaValidationError> validate(JsonSchema schema, JsonDocument document)
      Validates the given JSON document against the schema and returns any errors.
    • noop

      static JsonSchemaValidator noop()
      Returns the no-op validator singleton that accepts all input. Passing this instance disables validation entirely, including the parsing work needed to prepare data for validation.