dry-rb/dry-validation

Calling a macro on a deeply nested rule

Offen

#578 geöffnet am 31.07.2019

 (2 Kommentare) (8 Reaktionen) (0 zugewiesene Personen)Ruby (195 Forks)github user discovery
featurehelp wanted

Repository-Metriken

Stars
 (1.422 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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