Package com.networknt.schema
Class OutputFormat.Default
java.lang.Object
com.networknt.schema.OutputFormat.Default
- All Implemented Interfaces:
OutputFormat<Set<ValidationMessage>>
- Enclosing interface:
OutputFormat<T>
public static class OutputFormat.Default
extends Object
implements OutputFormat<Set<ValidationMessage>>
The Default output format.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.networknt.schema.OutputFormat
OutputFormat.Boolean, OutputFormat.Default, OutputFormat.Flag, OutputFormat.Hierarchical, OutputFormat.List, OutputFormat.Result -
Field Summary
Fields inherited from interface com.networknt.schema.OutputFormat
BOOLEAN, DEFAULT, FLAG, HIERARCHICAL, LIST, RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(ExecutionContext executionContext, ValidationContext validationContext) Customize the execution context before validation.format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext) Formats the validation results.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
customize
Description copied from interface:OutputFormatCustomize the execution context before validation.The validation context should only be used for reference as it is shared.
- Specified by:
customizein interfaceOutputFormat<Set<ValidationMessage>>- Parameters:
executionContext- the execution contextvalidationContext- the validation context for reference
-
format
public Set<ValidationMessage> format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext) Description copied from interface:OutputFormatFormats the validation results.- Specified by:
formatin interfaceOutputFormat<Set<ValidationMessage>>- Parameters:
jsonSchema- the schemavalidationMessages- the validation messagesexecutionContext- the execution contextvalidationContext- the validation context- Returns:
- the result
-