These are chat archives for dry-rb/chat

15th
Jul 2018
Calinoiu Alexandru Nicolae
@alexandru-calinoiu
Jul 15 2018 10:32
Anyway to reuses validations schemas, not only based on a field, I want to include the entire schema in a new schema?
Similar to the original question in this unanswered post https://discourse.dry-rb.org/t/reusing-schema-by-switch-required-to-optionsl/265 without the switching to optional part
Calinoiu Alexandru Nicolae
@alexandru-calinoiu
Jul 15 2018 10:41
Found it, one can simply use a base class like here http://dry-rb.org/gems/dry-validation/basics/working-with-schemas/