dry-rb/dry-validation

Calling a macro on a deeply nested rule

開放

#578 建立於 2019年7月31日

 (2 則留言) (8 個反應) (0 位負責人)Ruby (195 個分叉)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

貢獻者指南