class Schematics::TypeValidator(T)

Overview

Validator for basic types using Crystal's type system

Defined in:

validators.cr

Instance Method Summary

Instance methods inherited from class Schematics::Validator(T)

call(value) : T | Nil call, validate(value, path : String = "root") : ValidationResult validate

Instance Method Detail

def call(value) : T | Nil #

[View source]
def validate(value, path : String = "root") : ValidationResult #

[View source]