struct Swagger::Property
- Swagger::Property
- Struct
- Value
- Object
Defined in:
swagger/property.crConstructors
Instance Method Summary
- #default_value : Bool | Float64 | Int32 | Int64 | String | Nil
- #default_value=(default_value : Bool | Float64 | Int32 | Int64 | String | Nil)
- #description : String?
- #description=(description : Nil | String)
- #example : Bool | Float64 | Int32 | Int64 | String | Nil
- #example=(example : Bool | Float64 | Int32 | Int64 | String | Nil)
- #format : String?
- #format=(format : Nil | String)
- #items : String | Swagger::Object | Nil
- #items=(items : String | Swagger::Object | Nil)
- #name : String
- #name=(name : String)
- #required : Bool?
- #required=(required : Bool | Nil)
- #type : String
- #type=(type : String)
Constructor Detail
def self.new(name : String, type : String = "string", format : String | Nil = nil, items : Object | String | Nil = nil, description : String | Nil = nil, default_value : String | Int32 | Int64 | Float64 | Bool | Nil = nil, example : String | Int32 | Int64 | Float64 | Bool | Nil = nil, required : Bool | Nil = nil)
#