class
Jargon::Property
- Jargon::Property
- Reference
- Object
Defined in:
jargon/schema/property.crConstructors
- .from_json(name : String, json : JSON::Any, required_fields : Array(String) = [] of String) : Property
- .new(name : String, type : Type, description : String | Nil = nil, required : Bool = false, default : JSON::Any | Nil = nil, enum_values : Array(JSON::Any) | Nil = nil, properties : Hash(String, Property) | Nil = nil, items : Property | Nil = nil, ref : String | Nil = nil, short : String | Nil = nil, env : String | Nil = nil)
Instance Method Summary
- #default : JSON::Any | Nil
- #description : String | Nil
- #enum_values : Array(JSON::Any) | Nil
- #env : String | Nil
- #items : Property | Nil
- #name : String
- #properties : Hash(String, Property) | Nil
- #ref : String | Nil
- #required : Bool
- #short : String | Nil
- #type : Type
Constructor Detail
def self.from_json(name : String, json : JSON::Any, required_fields : Array(String) = [] of String) : Property
#
def self.new(name : String, type : Type, description : String | Nil = nil, required : Bool = false, default : JSON::Any | Nil = nil, enum_values : Array(JSON::Any) | Nil = nil, properties : Hash(String, Property) | Nil = nil, items : Property | Nil = nil, ref : String | Nil = nil, short : String | Nil = nil, env : String | Nil = nil)
#