dry-rb/dry-validation

Calling a macro on a deeply nested rule

Aberta

#578 aberto em 31 de jul. de 2019

 (2 comentários) (8 reações) (0 responsável)Ruby (195 forks)github user discovery
featurehelp wanted

Métricas do repositório

Stars
 (1.422 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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

Guia do colaborador