RequestBody
- class RequestBody(d: dict[str, Any] = None, description: str = None, content: dict[str, MediaType] = None, required: bool = None)
Describes a single request body.
- property description: str | None
A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.
- property content: dict[str, MediaType]
REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g.
"text/plain"overrides"text/*".
- property required: bool | None
Determines if the request body is required in the request. Defaults to false.