OasMediaType
OasMediaType is an object representing an OpenAPI media type.
Properties
| Property | Type | Description |
|---|---|---|
| oasType | 'mediaType' | Static value representing the OpenAPI media type. |
| mediaType | string | The media type. |
| schema | OasSchema | OasRef<'schema'> | undefined | Optional OasSchema or reference to it. |
| examples | Record<string, OasExample | OasRef<'example'>> | undefined | Optional map of examples for the media type. |
| extensionFields | Record<string, unknown> | undefined | Optional map of custom fields defined by OpenAPI extensions. Keys are strings beginning with x- and values are of any valid JSON type. |