struct Athena::Validator::ConstraintValidatorFactory

Overview

Basic implementation of AVD::ConstraintValidatorFactoryInterface.

Included Modules

Defined in:

constraint_validator_factory.cr

Instance Method Summary

Instance methods inherited from module Athena::Validator::ConstraintValidatorFactoryInterface

validator(validator : AVD::ConstraintValidator.class) : AVD::ConstraintValidatorInterface validator

Instance Method Detail

def validator(validator_class : AVD::ServiceConstraintValidator.class) : AVD::ConstraintValidator #

Returns an AVD::ConstraintValidator based on the provided validator_class.

NOTE This overloaded is intended to be used for service based validators that are already instantiated and were provided via DI.


[View source]
def validator(validator_class : AVD::ConstraintValidator.class) : AVD::ConstraintValidator #

Returns an AVD::ConstraintValidator based on the provided validator_class.


[View source]