ValidateOrReject extension

Validating a value at the point a handler uses it.

on
  • Validatable

Methods

validateOrReject() → void

Available on Validatable, provided by the ValidateOrReject extension

Throws a 422 Rejection when this value fails its constraints.