RequestBody

zio.http.api.openapi.OpenAPI$.RequestBody
final case class RequestBody(description: Doc, content: Map[String, MediaType], required: Boolean) extends ResponseOrReference

Describes a single request body.

Attributes

content

The content of the request body. The key is a media type or [media type range]appendix-D) and the value describes it. For requests that match multiple keys, only the most specific key is applicable.

description

A brief description of the request body. This could contain examples of use.

required

Determines if the request body is required in the request.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def toJson: String

Attributes

Definition Classes
OpenAPIBase

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product