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 predicates then yes, I think it should be possible, in theory. One can imagine an extension that extracts all non-type predicates and replaces them with rules, so all rules are run simultaneously. This does sound like a whole bunch of work, though
↧
Execute contract rules also when the schema is not valid?
↧