<PackageReference Include="NJsonSchema" Version="9.13.36" />

ValidationError

public class ValidationError
A validation error.
public bool HasLineInfo { get; }

Indicates whether or not the error contains line information.

public ValidationErrorKind Kind { get; }

Gets the error kind.

public int LineNumber { get; }

Gets the line number the validation failed on.

public int LinePosition { get; }

Gets the line position the validation failed on.

public string Path { get; }

Gets the property path.

public string Property { get; }

Gets the property name.

public JsonSchema4 Schema { get; }

Gets the schema element that contains the validation rule.

public ValidationError(ValidationErrorKind errorKind, string propertyName, string propertyPath, JToken token, JsonSchema4 schema)

Initializes a new instance of the ValidationError class.