class JSONSchema::FluentGenericValidator

Overview

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

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 const(value : JSON::Any::Type) #

Sets JSONSchema::GenericValidator#const. Learn about const.

validator = JSONSchema.generic do
  const "United States"
end

[View source]

[View source]