Interface Walker

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void walk​(ExecutionContext executionContext, com.fasterxml.jackson.databind.JsonNode instanceNode, com.fasterxml.jackson.databind.JsonNode instance, NodePath 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

        void walk​(ExecutionContext executionContext,
                  com.fasterxml.jackson.databind.JsonNode instanceNode,
                  com.fasterxml.jackson.databind.JsonNode instance,
                  NodePath 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.

        Validator.walk(ExecutionContext, JsonNode, JsonNode, NodePath, 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 - the execution context
        instanceNode - the instance node being processed
        instance - the instance document that the instance node belongs to
        instanceLocation - the location of the instance node being processed
        shouldValidateSchema - true to validate the schema while walking