Class OutputFormat.Default

java.lang.Object
com.networknt.schema.OutputFormat.Default
All Implemented Interfaces:
OutputFormat<List<Error>>
Enclosing interface:
OutputFormat<T>

public static class OutputFormat.Default extends Object implements OutputFormat<List<Error>>
The Default output format.
  • Constructor Details

    • Default

      public Default()
  • Method Details

    • customize

      public void customize(ExecutionContext executionContext, SchemaContext schemaContext)
      Description copied from interface: OutputFormat
      Customize the execution context before validation.

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

      Specified by:
      customize in interface OutputFormat<List<Error>>
      Parameters:
      executionContext - the execution context
      schemaContext - the schema context for reference
    • format

      public List<Error> format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext)
      Description copied from interface: OutputFormat
      Formats the validation results.
      Specified by:
      format in interface OutputFormat<List<Error>>
      Parameters:
      jsonSchema - the schema
      executionContext - the execution context
      schemaContext - the schema context
      Returns:
      the result