trailblazer.github.io icon indicating copy to clipboard operation
trailblazer.github.io copied to clipboard

Added conditional validation example

Open igor-alexandrov opened this issue 8 years ago • 3 comments

igor-alexandrov avatar Mar 31 '17 08:03 igor-alexandrov

That's a great addition, thanks @igor-alexandrov - the problem is only, do we actually want to push validation groups or rather high-level rules in dry-v?

Also, I'm contemplating rewriting most parts of the Reform docs. Are you interesting in helping? We could start with discussing structure and examples, and then go for it!?!

apotonick avatar Apr 01 '17 16:04 apotonick

@apotonick sure I want to help. Also I like the idea of how DRY keeps their documentation: they don't have anything in README and all documentation is on their site: http://dry-rb.org/gems/dry-validation https://github.com/dry-rb/dry-validation. This is easier to maintain and keeps everything in one place.

igor-alexandrov avatar Apr 02 '17 06:04 igor-alexandrov

As for me, validation groups are more understandable than high-level rules.

igor-alexandrov avatar Apr 02 '17 06:04 igor-alexandrov