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, ValidationContext validationContext)
      Customize the execution context before validation.

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

      Parameters:
      executionContext - the execution context
      validationContext - the validation context for reference
    • format

      T format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext)
      Formats the validation results.
      Parameters:
      jsonSchema - the schema
      validationMessages - the validation messages
      executionContext - the execution context
      validationContext - the validation context
      Returns:
      the result