RequestBody

zio.http.endpoint.openapi.OpenAPI.RequestBody
See theRequestBody companion object
final case class RequestBody(description: Option[Doc], content: Map[String, MediaType], required: Boolean)

Describes a single request body.

Value parameters

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.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product