Interface OutputFormat<T>

Type Parameters:
T - the result type
All Known Implementing Classes:
OutputFormat.Boolean, OutputFormat.Default, OutputFormat.Flag, OutputFormat.Hierarchical, OutputFormat.List, OutputFormat.Result

public interface OutputFormat<T>
Formats the validation results.
  • Field Details

  • Method Details

    • customize

      default void customize(ExecutionContext executionContext, SchemaContext schemaContext)
      Customize the execution context before validation.

      The schema context should only be used for reference as it is shared.

      Parameters:
      executionContext - the execution context
      schemaContext - the schema context for reference
    • format

      T format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext)
      Formats the validation results.
      Parameters:
      jsonSchema - the schema
      executionContext - the execution context
      schemaContext - the schema context
      Returns:
      the result