Type Alias StringConstraintViolation
StringConstraintViolation: Readonly<
| { constraint: "nonempty"
| "lowercase"
| "uppercase"; value: true }
| { constraint: "minLength" | "maxLength"; value: number }
| { constraint: "startsWith" | "endsWith" | "includes"; value: string }
| { constraint: "regex"; value: string },
>
Describes which
stringconstraint (see thestringcodec) a value failed, together with the constraint's configured value.valuedoubles as the value shown in the constructor-time "defaultValue ... does not satisfy the constraint ..." message, so it mirrors the raw constraint input (the flag constraints carrytrue,regexcarries itssource).