Class OutputFormat.Result

    • Constructor Detail

      • Result

        public Result()
    • Method Detail

      • 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<Result>
        Parameters:
        executionContext - the execution context
        schemaContext - the schema context for reference
      • format

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