class Kontrol::ObjectValidator

Defined in:

kontrol/json.cr

Constructors

Instance Method Summary

Instance methods inherited from class Kontrol::Validator

call(json : JSON::Any) : Hash(String, Array(Symbol)) call

Constructor Detail

def self.new(validations : Hash(Symbol, JSON::Any -> Bool), properties : Hash(Symbol, Hash(Symbol, JSON::Any -> Bool) | Kontrol::Validator)) #

[View source]

Instance Method Detail

def [](name : Symbol) #

[View source]
def call(json : JSON::Any) : Hash(String, Array(Symbol)) #

[View source]
def keys #

[View source]
def properties : Hash(Symbol, Hash(Symbol, Rule) | Validator) #

[View source]
def validations : Hash(Symbol, Rule) #

[View source]