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

[View source]

Instance Method Detail

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

[View source]
def default_value=(default_value : Bool | Float64 | Int32 | Int64 | String | Nil) #

[View source]
def description : String? #

[View source]
def description=(description : Nil | String) #

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

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

[View source]
def format : String? #

[View source]
def format=(format : Nil | String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def required : Bool? #

[View source]
def required=(required : Bool | Nil) #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]