struct Swagger::Objects::RequestBody

Overview

Request Body Object

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

Included Modules

Defined in:

swagger/objects/request_body.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(description : String | Nil = nil, content : Hash(String, MediaType) | Nil = nil, required : Bool = false, ref : String | Nil = nil) #

[View source]

Instance Method Detail

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

[View source]
def description : String | Nil #

[View source]
def ref : String | Nil #

[View source]
def required : Bool #

[View source]