dry-v has another layer of abstraction under the hood: http://solnic.eu/2016/05/30/abstractions-and-the-role-of-a-framework.html#abstractions … Validation logic is just an AST! https://github.com/dry-rb/dry-logic …https://twitter.com/backus/status/851713058221080576 …
Result is you can write custom validations and dry-v will still know how to short circuit, extract your values to validate, etc.
-
-
ActiveModel seems similar but custom validators just blindly call methods on the object.
-
If you need to validate X with ActiveModel and it depends on the value of Y you're basically going to have to check if Y is valid again.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.