struct

Swagger::Request

Inherits Struct < Value < Object

Constructors

new(properties request_properties : Array(Property), description : String | Nil = nil, content_type : String | Nil = nil)

Returns request with properties

Swagger::Request.new([
  Swagger::Property.new("username", "string", "User name"),
  Swagger::Property.new("email", "string", ""),
  Swagger::Property.new("password"),
  Swagger::Property.new("confirm_password"),
], "User form data", "application/x-www-form-urlencoded")
Source
new(ref name : String, description : String | Nil = nil, content_type : String | Nil = nil)

Returns request with scheme reference

Swagger::Request.new("User", "User struct", "application/x-www-form-urlencoded")
Source
new(schema : Schema, description : String | Nil = nil, content_type : String | Nil = nil)
Source
new(media_type : MediaType, description : String | Nil = nil, content_type : String | Nil = nil)
Source

Instance methods

content_type
Source
content_type=(content_type : Nil | String)
Source
description
Source
description=(description : Nil | String)
Source
media_type
Source
media_type=(media_type : Swagger::Objects::MediaType)
Source