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)
- #description : String?
- #description=(description)
- #example : Bool | Float64 | Int32 | Int64 | String | Nil
- #example=(example)
- #format : String?
- #format=(format)
- #items : String | Swagger::Object | Nil
- #items=(items)
- #name : String
- #name=(name)
- #required : Bool?
- #required=(required)
- #type : String
- #type=(type)
Constructor Detail
def self.new(name : String, type : String = "string", format : String? = nil, items : Object | String? = nil, description : String? = nil, default_value : String | Int32 | Int64 | Float64 | Bool? = nil, example : String | Int32 | Int64 | Float64 | Bool? = nil, required : Bool? = nil)
#