Hello,
I was tasked with updating an old project (dry-validation 0.12) and I’m quite confused on how to adapt this specific piece of code :
required(:materials).each do
schema(Material.validation_schema)
end
This was quite handy, but now validation_schema is a Contract not a Schema as I tried to preserve the code structure (I do need to rename them), so schema(Material.validation_schema) no longer works and I’m not sure how to achieve this with Contracts.
Thanks!