Package com.networknt.schema
Class ErrorMessages
- java.lang.Object
-
- com.networknt.schema.ErrorMessages
-
public class ErrorMessages extends Object
ErrorMessages.
-
-
Constructor Summary
Constructors Constructor Description ErrorMessages()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>getErrorMessage(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)
-
-
-
Method Detail
-
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
-
-