ValidationError
A validation error.
namespace NJsonSchema.Validation
{
public class ValidationError
{
public ValidationErrorKind Kind { get; set; }
public string Property { get; set; }
public string Path { get; set; }
public ValidationError(ValidationErrorKind errorKind, string propertyName, string propertyPath)
{
Kind = errorKind;
Property = propertyName;
Path = ((propertyPath != null) ? ("#/" + propertyPath) : "#");
}
public override string ToString()
{
return string.Format("{0}: {1}", new object[2] {
Kind,
Path
});
}
}
}