struct
Amber::Schema::Definition::FieldDef
- Amber::Schema::Definition::FieldDef
- Struct
- Value
- Object
Overview
Internal field definition
Defined in:
amber/schema/definition.crConstructors
Instance Method Summary
- #default : JSON::Any | Nil
- #default=(default : JSON::Any | Nil)
- #name : String
- #name=(name : String)
- #options : Hash(String, JSON::Any)
- #options=(options : Hash(String, JSON::Any))
- #required : Bool
- #required=(required : Bool)
- #source : ParamSource
- #source=(source : ParamSource)
- #type : String
- #type=(type : String)
- #validators : Array(Validator::Base)
- #validators=(validators : Array(Validator::Base))
Constructor Detail
def self.new(name : String, type : String, required : Bool = false, default : JSON::Any | Nil = nil, source : ParamSource = ParamSource::Body)
#