ValidationErrors¶
Import: import system.validation;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
ValidationErrors¶
Deterministically ordered input errors without echoing sensitive submitted values.
issues¶
Validation failures, in discovery order.
constructor¶
Creates a ValidationErrors with default settings.
add¶
Appends an issue with the supplied location, code, and message.
is_empty¶
Returns whether there are no elements.
code¶
Returns EVALIDATION, the code shared by every input validation failure.
message¶
Returns each issue as location: message, joined with ;, with location parts joined by .. An empty collection returns validation failed.
to_json¶
Returns validation issues as JSON, including their location, code, and message.