ValidationError Class

Definition

A single validation error with a JSON path and human-readable message.

public sealed class ValidationError
type ValidationError = class
Public NotInheritable Class ValidationError
Inheritance
ValidationError

Constructors

Name Description
ValidationError(String, String)

Initializes a new instance of the ValidationError class.

Properties

Name Description
Message

Gets a human-readable description of the constraint that was violated.

Path

Gets the JSON path to the invalid field.

Applies to