Alumna::Schema
Constants
EMPTY_ERRORS = [] of FieldError
Constructors
Instance methods
any(name, **opts)
Sourcebool(name, **opts)
Sourcebytes(name, **opts)
Sourcefield(name : String, type : FieldType | Symbol, required : Bool = true, nullable : Bool = false, unique : Bool = false, indexed : Bool = false, read_only : Bool = false, min_length : Int32 | Nil = nil, max_length : Int32 | Nil = nil, format : Symbol | String | Nil = nil, required_on : ServiceMethod | Symbol | Array(ServiceMethod | Symbol) | Nil = nil, sub_schema : Schema | Nil = nil, element_type : FieldType | Nil = nil, default : AnyData | Proc(AnyData) | Unprovided | Nil = Unprovided.new) : self
Sourcefields
Sourcefloat(name, **opts)
Sourceindexed_fields
Returns a flat list of all indexed fields (including nested hashes) and their dot-notation paths
int(name, **opts)
Sourceschema_indexes
Sourcestrict
Sourcetime(name, **opts)
Sourceunique_fields
Returns a flat list of all unique fields (including nested hashes) and their dot-notation paths