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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article