Validation

Validation utility class that contains errors.

Members

Functions

apply
void apply(ServerResponse response)

If the validation failed sets the response's status to bad request and prints the errors to its body.

Properties

valid
bool valid [@property getter]

Indicates whether the validation was successful. A successful validation has no error.

Structs

Error
struct Error

Representation of an error.

Variables

errors
Error[] errors;

Errors generated during the validation process or by the controller.

Meta