Skip to content

class Athena::Validator::Spec::FailingConstraint
inherits Athena::Validator::Constraint #

A constraint that always adds a violation.

Class methods#

.new(message : String = "Failed", groups : Array(String) | String | Nil = nil, payload : Hash(String, String)? = nil) #

View source

Methods#

#validated_by : AVD::ConstraintValidator.class #

Returns the AVD::ConstraintValidator.class that should handle validating self.

View source