struct Swagger::Property

Defined in:

swagger/property.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def default_value : Bool | Float64 | Int32 | Int64 | String | Nil #

[View source]
def default_value=(default_value) #

[View source]
def description : String? #

[View source]
def description=(description) #

[View source]
def example : Bool | Float64 | Int32 | Int64 | String | Nil #

[View source]
def example=(example) #

[View source]
def format : String? #

[View source]
def format=(format) #

[View source]
def items : String | Swagger::Object | Nil #

[View source]
def items=(items) #

[View source]
def name : String #

[View source]
def name=(name) #

[View source]
def required : Bool? #

[View source]
def required=(required) #

[View source]
def type : String #

[View source]
def type=(type) #

[View source]