Package com.networknt.schema
Class ValidationMessage
- java.lang.Object
-
- com.networknt.schema.ValidationMessage
-
public class ValidationMessage extends Object
The output format.- See Also:
- JSON Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidationMessage.Builder
static class
ValidationMessage.BuilderSupport<S>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationMessage.Builder
builder()
boolean
equals(Object o)
Object[]
getArguments()
String
getCode()
Map<String,Object>
getDetails()
JsonNodePath
getEvaluationPath()
The evaluation path is the set of keys, starting from the schema root, through which evaluation passes to reach the schema object that produced a specific result.JsonNodePath
getInstanceLocation()
The instance location is the location of the JSON value within the root instance being validated.String
getMessage()
String
getMessageKey()
String
getProperty()
SchemaLocation
getSchemaLocation()
The schema location is the canonical IRI of the schema object plus a JSON Pointer fragment indicating the subschema that produced a result.String
getType()
int
hashCode()
boolean
isValid()
String
toString()
-
-
-
Method Detail
-
getCode
public String getCode()
-
getInstanceLocation
public JsonNodePath getInstanceLocation()
The instance location is the location of the JSON value within the root instance being validated.- Returns:
- The path to the input json
-
getEvaluationPath
public JsonNodePath getEvaluationPath()
The evaluation path is the set of keys, starting from the schema root, through which evaluation passes to reach the schema object that produced a specific result.- Returns:
- the evaluation path
-
getSchemaLocation
public SchemaLocation getSchemaLocation()
The schema location is the canonical IRI of the schema object plus a JSON Pointer fragment indicating the subschema that produced a result. In contrast with the evaluation path, the schema location MUST NOT include by-reference applicators such as $ref or $dynamicRef.- Returns:
- the schema location
-
getProperty
public String getProperty()
-
getArguments
public Object[] getArguments()
-
getMessage
public String getMessage()
-
getMessageKey
public String getMessageKey()
-
isValid
public boolean isValid()
-
getType
public String getType()
-
builder
public static ValidationMessage.Builder builder()
-
-