struct Swagger::Objects::Response

Overview

Response Object

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#responsesObject

Included Modules

Defined in:

swagger/objects/response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(description : String, headers : Hash(String, Header) | Nil = nil, content : Hash(String, MediaType) | Nil = nil, links : Array(Link) | Nil = nil, ref : String | Nil = nil) #

[View source]

Instance Method Detail

def content : Hash(String, MediaType) | Nil #

[View source]
def description : String #

[View source]
def headers : Hash(String, Header) | Nil #

[View source]
def links : Array(Link) | Nil #

[View source]
def ref : String | Nil #

[View source]