These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
Hi. Is there a way to create anonymous rules in dry-validations? Or do i have to specify them as:
I'm not saying this should be a feature, just curious if it exists. I have a case where I'm validating something but do not at all care about the error messages, only whether or not the thing is valid. I also use
mutant in CI and it complains that it can rename the argument
name__mutant__. I can expose the schema and expect something about it to kill the mutant, but if there already happens to be a way to define the rule anonymously, that'd be cool.
>available. Made working on a validation task I had today fun instead of frustrating :D
attributeson the instance.