dry-rb/dry-validation

Calling a macro on a deeply nested rule

开放

#578 创建于 2019年7月31日

 (2 条评论) (8 个反应) (0 位负责人)Ruby (196 个派生)github user discovery
featurehelp wanted

仓库指标

星标
 (1,422 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南