struct Swagger::Parameter

Overview

Use parameter in Swagger::Action

Defined in:

swagger/parameter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, parameter_location : String, type : String = "string", description : String | Nil = nil, default_value : String | Int32 | Int64 | Float64 | Bool | Nil = nil, format : String | Nil = nil, required : Bool = false, allow_empty_value : Bool = false, deprecated : Bool = false, ref : String | Nil = nil) #

[View source]

Instance Method Detail

def allow_empty_value : Bool #

[View source]
def allow_empty_value=(allow_empty_value : Bool) #

[View source]
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 deprecated : Bool #

[View source]
def deprecated=(deprecated : Bool) #

[View source]
def description : String? #

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

[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 parameter_location : String #

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

[View source]
def ref : String? #

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

[View source]
def required : Bool #

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

[View source]
def type : String #

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

[View source]