ValidationResult
The result of validating inputs against a Prompty’s inputs.
Returned by validate_inputs (§12.2) to indicate whether all
required inputs are present and satisfy their constraints.
Class Diagram
Section titled “Class Diagram”---
title: ValidationResult
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ValidationResult {
+boolean valid
+ValidationError[] errors
}
class ValidationError {
+string message
+string property
+string constraint
}
ValidationResult *-- ValidationError
Yaml Example
Section titled “Yaml Example”valid: trueerrors: []Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| valid | boolean | Whether all inputs passed validation |
| errors | ValidationError[] | List of validation errors (empty when valid is true) |
Composed Types
Section titled “Composed Types”The following types are composed within ValidationResult: