Class ValidationMessageHandler

    • Field Detail

      • failFast

        protected boolean failFast
      • evaluationParentSchema

        protected JsonSchema evaluationParentSchema
      • customErrorMessagesEnabled

        protected boolean customErrorMessagesEnabled
      • keyword

        protected Keyword keyword
    • Method Detail

      • schemaLocationContains

        protected boolean schemaLocationContains​(String match)
      • isPartOfOneOfMultipleType

        protected boolean isPartOfOneOfMultipleType()
      • parseErrorCode

        protected void parseErrorCode​(String errorCodeKey)
      • updateValidatorType

        protected void updateValidatorType​(ValidatorTypeCode validatorTypeCode)
      • updateErrorMessageType

        protected void updateErrorMessageType​(ErrorMessageType errorMessageType)
      • updateKeyword

        protected void updateKeyword​(Keyword keyword)
      • getErrorMessage

        protected Map<String,​String> getErrorMessage​(com.fasterxml.jackson.databind.JsonNode schemaNode,
                                                           String keyword)
        Gets the custom error message to use.
        Parameters:
        schemaNode - the schema node
        keyword - the keyword
        Returns:
        the custom error message
      • getMessageNode

        protected com.fasterxml.jackson.databind.JsonNode getMessageNode​(com.fasterxml.jackson.databind.JsonNode schemaNode,
                                                                         JsonSchema parentSchema,
                                                                         String pname)
      • getErrorCodeKey

        protected String getErrorCodeKey​(String keyword)