Interface ValidationMessage
- All Known Implementing Classes:
NetworkNtValidationMessage, ValidationMessageAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
JSON Schema Validation Message.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Method Details
-
getMessage
String getMessage()Returns the validation message.- Returns:
- JSON Schema Validation Message, prefixed with the JSON Pointer of the invalid instance location
-
getInstanceLocation
Returns the location of the invalid value.- Returns:
- The JSON Pointer (RFC 6901) of the instance location that failed validation, empty for the root
- Since:
- 2.3.2
-
getKeyword
Returns the keyword that failed.- Returns:
- The JSON Schema keyword that failed validation, if known
- Since:
- 2.3.2
-
getSchemaLocation
Returns the location of the failing keyword in the schema.- Returns:
- The location of the failing keyword within the schema (the base URI of the schema plus a JSON Pointer fragment), if known. It is absolute when the schema has an absolute base URI
- Since:
- 2.3.2
-