module Athena::Validator::Validatable
Overview
When included, denotes that a type (class or struct) can be validated via Athena::Validator
.
Example
class Example
include AVD::Validatable
def initialize(@name : String); end
@[Assert::NotBlank]
property name : String
end
AVD.validator.validate Example.new("Jim")
Direct including types
- Athena::Validator::Spec::EntityGroupSequenceProvider
- Athena::Validator::Spec::EntitySequenceProvider