ValidationErrors

data class ValidationErrors(val errors: List<ValidationError>) : Result<Nothing>

Represents a validation failure of an operation: a list of field-level errors instead of a single error message.

Universal — any operation that validates its input per object / per field reports validation failures through this variant. An empty errors list is not expected: absence of validation errors means Success.

Constructors

Link copied to clipboard
constructor(errors: List<ValidationError>)

Properties

Link copied to clipboard

list of ValidationError; each entry may point to a specific object (ValidationError.target) and to a specific field (ValidationError.field) of that object.