Skip to content

Middleware and event handler

A Validation is a callable object. It can be used as an event handler on the client side. To use it as middleware on the server side, it has to be created with the Validation.profile() method. Additionally, the Validation().dataMapper() method may be required for non-standard use cases to map a request body object to form fields.