reform
reform copied to clipboard
Form objects decoupled from models.
As per @apotonick's request in #410 here is a PR to start the conversation about changes to Reform. A couple things I noticed as I went through this. - `#failure?`...
Calling `DrySchema.messages` will return errors messages + hints - the solution here is to call `DrySchema.errors` This should fix: https://github.com/trailblazer/reform/issues/444
### Complete Description of Issue Reform/ Dry integration takes the whole [Dry::Validation::Result#messages](https://github.com/dry-rb/dry-validation/blob/master/lib/dry/validation/result.rb#L40) (hints + errors), not just errors. Consequently hints are presented indistinguishable from actual errors. If you have two...
Since the upgrade to 2.3.0rc1, unnested properties cause an error on validate when the parent property is nil, which was not the case in 2.2.0. Is this intended? Is there...
Hello Nick, We've had a discussion 2 weeks ago in Gitter about the best way to manage models with polymorphic associations. Up until now, with a simple, non-polymorphic `has_many` association...
I’ve got some problems with dry validation translations into the Reform::Form. I have some contracts with the following configuration ``` class New < Reform::Form . . . configure do config.messages...
This probably applies to other validation blocks, but when the base block doesn't include form it doesn't get injected as a param. In my example this is a validation block...
### Complete Description of Issue When using coercion with Reform, the raw date strings are coerced into Date types during validation. If validation fails, the values remain as the coerced...
Hello, Sorry if it's implemented elsewhere, I tried to find but didn't find, that's why I wrote a test case / drafted implementation so we can discuss. **Problem:** When have...
I have an existing API that passes `nil` for certain values that should actually be missing. To deal with this in a constrained manner, I'd like my form object to...