Package com.networknt.schema
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.
-
-
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 Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(ExecutionContext executionContext, SchemaContext schemaContext)Customize the execution context before validation.List<Error>format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext)Formats the validation results.
-
-
-
Method Detail
-
customize
public void customize(ExecutionContext executionContext, SchemaContext schemaContext)
Description copied from interface:OutputFormatCustomize the execution context before validation.The schema context should only be used for reference as it is shared.
- Specified by:
customizein interfaceOutputFormat<List<Error>>- Parameters:
executionContext- the execution contextschemaContext- the schema context for reference
-
format
public List<Error> format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext)
Description copied from interface:OutputFormatFormats the validation results.- Specified by:
formatin interfaceOutputFormat<List<Error>>- Parameters:
jsonSchema- the schemaexecutionContext- the execution contextschemaContext- the schema context- Returns:
- the result
-
-