Execute contract rules also when the schema is not valid?
Hello everyone! I read from the dry-validation rules page that key-specific rules are not executed when the schema is not valid. is there a way to enforce the rules also when the schema is not valid?...
View ArticleExecute contract rules also when the schema is not valid?
Hi @sekmo, and thanks for the question! You’ve explained yourself well, I totally understand what you’re looking to do. In fact, what you’re looking to do here sounds a lot like dry-schema’s hints...
View ArticleExecute contract rules also when the schema is not valid?
Generally, dry-validation type checks code against a given schema. You cannot run rules against untyped data, this doesn’t make sense to me, to be honest. But if we’re talking about non-type...
View ArticleExecute contract rules also when the schema is not valid?
Sorry I just realized I never replied! Thank you very much for the detailed answers @timriley and @flash-gordon, after reading them it totally makes sense to run the rest of the rules only when the...
View Article