class Kontrol::ObjectValidator
- Kontrol::ObjectValidator
- Kontrol::Validator
- Reference
- Object
Defined in:
kontrol/json.crConstructors
Instance Method Summary
- #[](name : Symbol)
- #call(json : JSON::Any) : Hash(String, Array(Symbol))
- #keys
- #properties : Hash(Symbol, Hash(Symbol, Rule) | Validator)
- #validations : Hash(Symbol, Rule)
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))
#