I've discovered dry-validation a few days ago and I'm currently trying it out on a project. Now I've come to the point where I was thinking about creating schemas dynamically. If I understand correct I can simply create my own schema class with something like:
class Schema < Dry::Validation::Schema::Form
Let's say I would like to pass in which fields of my schema are optional since this differs from case to case. Is there any non hacky way to achieve this?