class Amber::Schema::Validator::Range

Overview

Validates numeric range (both min and max)

Defined in:

amber/schema/validators/range.cr

Constructors

Instance Method Summary

Instance methods inherited from class Amber::Schema::Validator::Base

validate(context : Context) : Nil validate

Constructor Detail

def self.new(field_name : String, min : Float64 | Nil = nil, max : Float64 | Nil = nil) #

[View source]

Instance Method Detail

def validate(context : Context) : Nil #

[View source]