struct Swagger::Objects::Response
- Swagger::Objects::Response
- Struct
- Value
- Object
Overview
Response Object
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#responsesObject
Included Modules
- JSON::Serializable
Defined in:
swagger/objects/response.crConstructors
- .new(pull : JSON::PullParser)
- .new(description : String, headers : Hash(String, Header) | Nil = nil, content : Hash(String, MediaType) | Nil = nil, links : Array(Link) | Nil = nil, ref : String | Nil = nil)
Instance Method Summary
- #content : Hash(String, MediaType) | Nil
- #description : String
- #headers : Hash(String, Header) | Nil
- #links : Array(Link) | Nil
- #ref : String | Nil
Constructor Detail
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)
#