class JSONSchema::FluentNumberValidator

Overview

A fluent API for creating instances of JSONSchema::NumberValidator.

Included Modules

Defined in:

fluent.cr

Instance Method Summary

Instance methods inherited from module JSONSchema::FluentValidatorGenericProperties

all_of(*children) all_of, any_of(*children) any_of, enum_list(*values) enum_list, not(*children) not, one_of(*children) one_of

Instance Method Detail

def exclusive_maximum(value : Int32) #

[View source]
def exclusive_minimum(value : Int32) #

[View source]
def has_integer_constraint #

Sets the constraint for requiring the number to be an integer.


[View source]
def maximum(value : Int32) #

Sets #maximum. See Range


[View source]
def minimum(value : Int32) #

Sets #minimum. See Range


[View source]
def multiple_of(value : Int32) #

[View source]
def validator : JSONSchema::NumberValidator #

[View source]