Package com.networknt.schema.output
Class HierarchicalOutputUnitFormatter
java.lang.Object
com.networknt.schema.output.HierarchicalOutputUnitFormatter
HierarchicalOutputUnitFormatter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
buildIndex
(OutputUnitKey key, Map<JsonNodePath, Map<JsonNodePath, OutputUnit>> index, Map<JsonNodePath, Set<JsonNodePath>> keys, OutputUnit root) Builds in the index of evaluation path to output units to be populated later and modify the root to add the appropriate children.static OutputUnit
format
(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext, Function<ValidationMessage, Object> assertionMapper) static OutputUnit
format
(OutputUnit root, OutputUnitData data, JsonNodePath rootPath)
-
Constructor Details
-
HierarchicalOutputUnitFormatter
public HierarchicalOutputUnitFormatter()
-
-
Method Details
-
format
-
format
public static OutputUnit format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext, Function<ValidationMessage, Object> assertionMapper) -
buildIndex
protected static void buildIndex(OutputUnitKey key, Map<JsonNodePath, Map<JsonNodePath, OutputUnit>> index, Map<JsonNodePath, Set<JsonNodePath>> keys, OutputUnit root) Builds in the index of evaluation path to output units to be populated later and modify the root to add the appropriate children.- Parameters:
key
- the current key to processindex
- contains all the mappings from evaluation path to output unitskeys
- that contain all the evaluation paths with instance dataroot
- the root output unit
-