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>
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, SchemaContext schemaContext) Customize the execution context before validation.format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext) Formats the validation results.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
customize
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
-