class Open::Api::Parameter

Overview

https://swagger.io/specification/#parameter-object

Included Modules

Defined in:

open-api/parameter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(name : String, parameter_in : String, schema : SchemaRef | Nil = nil, required : Bool = false, deprecated : Bool = false, example : Open::Api::ExampleValue = nil, examples : Hash(String, Open::Api::ExampleValue) = Hash(String, Open::Api::ExampleValue).new, description : String | Nil = nil, style : String | Nil = nil, allow_reserved : Bool = false) #

[View source]
def self.new(name, type, location = "query", description : String = "", required : Bool = false, default_value : String | Int32 | Int64 | Float64 | Bool | Nil = nil, example : Open::Api::ExampleValue = nil) : Open::Api::Parameter #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def allow_reserved : Bool #

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

[View source]
def deprecated : Bool #

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

[View source]
def description : String | Nil #

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

[View source]
def example : Open::Api::ExampleValue #

[View source]
def example=(example : Open::Api::ExampleValue) #

[View source]
def examples : Hash(String, Open::Api::ExampleValue) #

[View source]
def examples=(examples : Hash(String, Open::Api::ExampleValue)) #

[View source]
def name : String #

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

[View source]
def parameter_in : String #

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

[View source]
def required : Bool #

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

[View source]
def schema : Open::Api::SchemaRef | Nil #

[View source]
def schema=(schema : Open::Api::SchemaRef | Nil) #

[View source]
def style : String | Nil #

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

[View source]