Skip to content

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

A constraint that always adds a violation.

Constructors#

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

View source

Methods#

#validated_by : AVD::ConstraintValidator.class#

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

View source