dry-rb/dry-validation

Calling a macro on a deeply nested rule

Open

#578 opened on Jul 31, 2019

View on GitHub
 (2 comments) (8 reactions) (0 assignees)Ruby (193 forks)github user discovery
featurehelp wanted

Repository metrics

Stars
 (1,421 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I'd like to be able to specify a macro in the following manner: rule(foo: :bar).each where both foo and bar are arrays.

Examples

As an example please have a look at this spec that's currently failing: https://github.com/dry-rb/dry-validation/compare/master...DawidJanczak:macro-on-deeply-nested-rule

Resources

Discussed with @solnic here: https://discourse.dry-rb.org/t/calling-a-macro-on-a-depply-nested-rule/842

Contributor guide