Interface JsonSchemaWalker

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Set<ValidationMessage> walk​(ExecutionContext executionContext, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, JsonNodePath instanceLocation, boolean shouldValidateSchema)
      This method gives the capability to walk through the given JsonNode, allowing functionality beyond validation like collecting information,handling cross-cutting concerns like logging or instrumentation.
    • Method Detail

      • walk

        Set<ValidationMessage> walk​(ExecutionContext executionContext,
                                    com.fasterxml.jackson.databind.JsonNode node,
                                    com.fasterxml.jackson.databind.JsonNode rootNode,
                                    JsonNodePath instanceLocation,
                                    boolean shouldValidateSchema)
        This method gives the capability to walk through the given JsonNode, allowing functionality beyond validation like collecting information,handling cross-cutting concerns like logging or instrumentation. This method also performs the validation if shouldValidateSchema is set to true.

        JsonValidator.walk(ExecutionContext, JsonNode, JsonNode, JsonNodePath, boolean) provides a default implementation of this method. However, validators that parse sub-schemas should override this method to call walk method on those sub-schemas.
        Parameters:
        executionContext - ExecutionContext
        node - JsonNode
        rootNode - JsonNode
        instanceLocation - JsonNodePath
        shouldValidateSchema - boolean
        Returns:
        a set of validation messages if shouldValidateSchema is true.