Class OutputFormat.Flag

java.lang.Object
com.networknt.schema.OutputFormat.Flag
All Implemented Interfaces:
OutputFormat<OutputFlag>
Enclosing interface:
OutputFormat<T>

public static class OutputFormat.Flag extends Object implements OutputFormat<OutputFlag>
The Flag output format.
  • Constructor Details

    • Flag

      public Flag()
  • Method Details

    • customize

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

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

      Specified by:
      customize in interface OutputFormat<OutputFlag>
      Parameters:
      executionContext - the execution context
      validationContext - the validation context for reference
    • format

      public OutputFlag format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext)
      Description copied from interface: OutputFormat
      Formats the validation results.
      Specified by:
      format in interface OutputFormat<OutputFlag>
      Parameters:
      jsonSchema - the schema
      validationMessages - the validation messages
      executionContext - the execution context
      validationContext - the validation context
      Returns:
      the result