Ran into a weird NilClass exception in dry-logic via dry-validation when trying to validate an empty String value. ¯\(°_o)/¯
https://discourse.dry-rb.org/t/strange-dry-validation-dry-schema-bug/1749
#dry_validations #dry_schema
Strange dry-validation / dry-schema bug

Ran into this NilClass exception coming from dry-logic, via dry-schema and dry-valiation. Code in question: https://github.com/ronin-rb/ronin-app/blob/e7b0b7880f1e5c41a29750596d951ba6b0bb35f1/lib/ronin/app/validations/recon_params.rb#L41-L62 Spec Failure: allow `ignore` to be empty since it's submitted via an HTML form. · ronin-rb/ronin-app@e7b0b78 · GitHub 1) Ronin::App::Validations::ReconParams rules :ignore must allow an empty value for :ignore Failure/Error: result = subject...

dry-rb discussion forum
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
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