[T] OpenAPI3MediaType
type OpenAPI3MediaType = Extensions & object;Each Media Type Object provides schema and examples for the media type identified by its key.
Type declaration
| Name | Type | Description |
|---|---|---|
encoding? | Record<string, OpenAPI3Encoding> | A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded. |
example? | unknown | Example |
examples? | Record<string, OpenAPI3Example> | Examples with title |
schema? | Refable<OpenAPI3Schema> | The schema defining the content of the request, response, or parameter. |
See
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#mediaTypeObject