Class NetworkNtValidationMessage
java.lang.Object
io.micronaut.jsonschema.validation.ValidationMessageAdapter
io.micronaut.jsonschema.validation.networknt.NetworkNtValidationMessage
- All Implemented Interfaces:
ValidationMessage
A
ValidationMessage reported by NetworkNT, giving access to the original
Error.- Since:
- 2.3.2
- Author:
- Sergio del Amo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.networknt.schema.ErrorgetError()Returns the validation message.Methods inherited from class ValidationMessageAdapter
getDetail, getInstanceLocation, getKeyword, getSchemaLocation, toString
-
Constructor Details
-
NetworkNtValidationMessage
public NetworkNtValidationMessage(com.networknt.schema.Error error) - Parameters:
error- Original validation error.
-
-
Method Details
-
getMessage
Description copied from interface:ValidationMessageReturns the validation message.- Specified by:
getMessagein interfaceValidationMessage- Overrides:
getMessagein classValidationMessageAdapter- Returns:
- JSON Schema Validation Message, prefixed with the JSON Pointer of the invalid instance location
-
getError
public com.networknt.schema.Error getError()- Returns:
- Original validation error.
-