postmodern · @postmodern
1343 followers · 2040 posts · Server ruby.social

Using dry-validation and an HTML form, how would you handle a field which can be either a boolean or a comma separated list? It must ultimately map to the same symbol name.

#dry_validations #dryrb

Last updated 1 year ago

postmodern · @postmodern
1291 followers · 1809 posts · Server ruby.social

Clever. dry-validations allows for rules to execute on each value in an Array using `rule(:name).each do ...`.
dry-rb.org/gems/dry-validation

#dry_rb #dry_validations

Last updated 1 year ago