trailblazer / reform

Form objects decoupled from models.
https://trailblazer.to/2.1/docs/reform.html
MIT License
2.49k stars 184 forks source link

Allow to add an error after validation #494

Closed emaglio closed 4 years ago

emaglio commented 4 years ago

The idea is to add in the @results instance variable an object which simulates a Dry schema object so any other part of the code should just work as before. I have also added the possibility to add an error before actually running a validation (not sure if that makes sense but I don't see why it wouldn't).

apotonick commented 4 years ago

:+1: