class Athena::Validator::Spec::FailingConstraint
Overview
A constraint that always adds a violation.
Defined in:
spec.crConstructors
Instance Method Summary
-
#validated_by : AVD::ConstraintValidator.class
Returns the
AVD::ConstraintValidator.class
that should handle validatingself
.
Instance methods inherited from class Athena::Validator::Constraint
add_implicit_group(group : String) : Nil
add_implicit_group,
groups : Array(String)
groups,
groups=(groups : Array(String))
groups=,
message : String
message,
payload : Hash(String, String) | Nil
payload,
validated_by : AVD::ConstraintValidator.class
validated_by
Constructor methods inherited from class Athena::Validator::Constraint
new(message : String, groups : Array(String) | String | Nil = nil, payload : Hash(String, String) | Nil = nil)
new
Class methods inherited from class Athena::Validator::Constraint
error_name(error_code : String) : String
error_name
Constructor Detail
def self.new(message : String = "Failed", groups : Array(String) | String | Nil = nil, payload : Hash(String, String) | Nil = nil)
#
Instance Method Detail
Returns the AVD::ConstraintValidator.class
that should handle validating self
.