class JSONSchema::FluentStringValidator

Overview

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

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 format(value : String) #

Sets a format for the string. See Format.


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

Sets #max_length. See Length


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

Sets #min_length. See Length


[View source]
def pattern(value : Regex) #

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

[View source]