dry-rb/dry-validation

Calling a macro on a deeply nested rule

Ouverte

#578 ouverte le 31 juil. 2019

 (2 commentaires) (8 réactions) (0 personne assignée)Ruby (195 forks)github user discovery
featurehelp wanted

Métriques du dépôt

Stars
 (1 422 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur