Package com.networknt.schema
Class ErrorMessages
java.lang.Object
com.networknt.schema.ErrorMessages
ErrorMessages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetErrorMessage(Schema parentSchema, String errorMessageKeyword, String keyword) Gets the custom error message to use.protected static com.fasterxml.jackson.databind.JsonNodegetMessageNode(String errorMessageKeyword, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, String pname)
-
Constructor Details
-
ErrorMessages
public ErrorMessages()
-
-
Method Details
-
getErrorMessage
public static Map<String,String> getErrorMessage(Schema parentSchema, String errorMessageKeyword, String keyword) Gets the custom error message to use.- Parameters:
parentSchema- the parent schemaerrorMessageKeyword- the error message keywordkeyword- the keyword- Returns:
- the custom error message
-
getMessageNode
-