ValidationRejection extension
Turns the outcome of a Validate() derive into a rejection.
dust_dart reports failures as a flat list of (field, message) pairs,
while a 422 body groups them by field so a client can put each message
beside its input. This is the one place that regrouping happens, so every
application answers a failed constraint the same way.
- on
-
- ValidationResult
Properties
- rejection → Rejection?
-
Available on ValidationResult, provided by the ValidationRejection extension
The 422 for these errors, ornullwhen the value is valid.no setter