ValidationError
Raised when input validation fails. Each ValidationError describes a single property that did not satisfy its constraint.
Class Diagram
Section titled “Class Diagram”---
title: ValidationError
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ValidationError {
+string message
+string property
+string constraint
}
Yaml Example
Section titled “Yaml Example”message: "Missing required input: firstName"property: firstNameconstraint: requiredProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| message | string | Human-readable error message |
| property | string | The name of the property that failed validation |
| constraint | string | The constraint that was violated (e.g., ‘required’, ‘type’) |