struct Swagger::Objects::RequestBody
- Swagger::Objects::RequestBody
- Struct
- Value
- Object
Overview
Request Body Object
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#requestBodyObject
Included Modules
- JSON::Serializable
Defined in:
swagger/objects/request_body.crConstructors
- .new(pull : JSON::PullParser)
- .new(description : String | Nil = nil, content : Hash(String, MediaType) | Nil = nil, required : Bool = false, ref : String | Nil = nil)
Instance Method Summary
- #content : Hash(String, MediaType) | Nil
- #description : String | Nil
- #ref : String | Nil
- #required : Bool
Constructor Detail
def self.new(description : String | Nil = nil, content : Hash(String, MediaType) | Nil = nil, required : Bool = false, ref : String | Nil = nil)
#