dry-rb/dry-validation

Calling a macro on a deeply nested rule

オープン

#578 opened on 2019/07/31

 (2 件のコメント) (8 件のリアクション) (0 人の担当者)Ruby (196 件のフォーク)github user discovery
featurehelp wanted

Repository metrics

Stars
 (1,422 個のスター)
PR merge metrics
 (30d に merged 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

コントリビューターガイド