Clever. dry-validations allows for rules to execute on each value in an Array using `rule(:name).each do ...`.
https://dry-rb.org/gems/dry-validation/1.5/rules/#defining-a-rule-for-each-element-of-an-array
#dry_rb #dry_validations
dry-rb - dry-validation v1.5 - Rules

The standalone validation library for Ruby

@postmodern it works fine, but it isn't good for arrays of objects. Please prove me wrong. If you have a solution I would like to see it
@stoivo curious how so? It appears to return validation errors in the form of `key => [[index, [errors, ...]], ...]`.
@postmodern
It works but I have to do something on my own when I have a structure as I have here in the gist. The built-in solution only works for one first-level array. I'm not sure it is worth having this freature as is.
https://gist.github.com/stoivo/0ae0754141a132d8061abdf68a1e7c73
Maybe it's better to use `rule do .... end` and learn how to dig down from there.
dry-validations array of arrays of objects

dry-validations array of arrays of objects. GitHub Gist: instantly share code, notes, and snippets.

Gist