You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the Media Type Object and Encoding Object to the Components Object,
and allow a Reference Object anywhere they are allowed.
To ensure that re-usable Objects can be documented clearly, add
a `description` field to both Objects.
This object MAY be extended with [Specification Extensions](#specification-extensions).
632
635
@@ -1008,7 +1011,7 @@ For use with `in: "querystring"` and `application/x-www-form-urlencoded`, see [E
1008
1011
1009
1012
| Field Name | Type | Description |
1010
1013
| ---- | :----: | ---- |
1011
-
| <a name="parameter-content"></a>content | Map[`string`, [Media Type Object](#media-type-object)] | A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry. |
1014
+
| <a name="parameter-content"></a>content | Map[`string`, [Media Type Object](#media-type-object) \| [Reference Object](#reference-object)] | A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry. |
1012
1015
1013
1016
##### Style Values
1014
1017
@@ -1198,7 +1201,7 @@ Describes a single request body.
1198
1201
| Field Name | Type | Description |
1199
1202
| ---- | :----: | ---- |
1200
1203
| <a name="request-body-description"></a>description | `string` | A brief description of the request body. This could contain examples of use. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation. |
1201
-
| <a name="request-body-content"></a>content | Map[`string`, [Media Type Object](#media-type-object)] | **REQUIRED**. The content of the request body. The key is a media type or [media type range](https://www.rfc-editor.org/rfc/rfc9110.html#appendix-A) and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"` |
1204
+
| <a name="request-body-content"></a>content | Map[`string`, [Media Type Object](#media-type-object) \| [Reference Object](#reference-object)] | **REQUIRED**. The content of the request body. The key is a media type or [media type range](https://www.rfc-editor.org/rfc/rfc9110.html#appendix-A) and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"` |
1202
1205
| <a name="request-body-required"></a>required | `boolean` | Determines if the request body is required in the request. Defaults to `false`. |
1203
1206
1204
1207
This object MAY be extended with [Specification Extensions](#specification-extensions).
@@ -1249,11 +1252,12 @@ See [Working With Examples](#working-with-examples) for further guidance regardi
1249
1252
1250
1253
| Field Name | Type | Description |
1251
1254
| ---- | :----: | ---- |
1255
+
| <a name="media-type-description"></a>description | `string` | A brief description of the media type. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation. |
1252
1256
| <a name="media-type-schema"></a>schema | [Schema Object](#schema-object) | A schema describing the complete content of the request, response, parameter, or header. |
1253
1257
| <a name="media-type-item-schema"></a>itemSchema | [Schema Object](#schema-object) | A schema describing each item within a [sequential media type](#sequential-media-types). |
1254
1258
| <a name="media-type-example"></a>example | Any | Example of the media type; see [Working With Examples](#working-with-examples). |
1255
1259
| <a name="media-type-examples"></a>examples | Map[ `string`, [Example Object](#example-object) \| [Reference Object](#reference-object)] | Examples of the media type; see [Working With Examples](#working-with-examples). |
1256
-
| <a name="media-type-encoding"></a>encoding | Map[`string`, [Encoding Object](#encoding-object)] | A map between a property name and its encoding information, as defined under [Encoding Usage and Restrictions](#encoding-usage-and-restrictions). The `encoding` field SHALL only apply when the media type is `multipart` or `application/x-www-form-urlencoded`. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. |
1260
+
| <a name="media-type-encoding"></a>encoding | Map[`string`, [Encoding Object](#encoding-object) \| [Reference Object](#reference-object)] | A map between a property name and its encoding information, as defined under [Encoding Usage and Restrictions](#encoding-usage-and-restrictions). The `encoding` field SHALL only apply when the media type is `multipart` or `application/x-www-form-urlencoded`. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. |
1257
1261
1258
1262
This object MAY be extended with [Specification Extensions](#specification-extensions).
1259
1263
@@ -1639,6 +1643,7 @@ These fields MAY be used either with or without the RFC6570-style serialization
1639
1643
1640
1644
| Field Name | Type | Description |
1641
1645
| ---- | :----: | ---- |
1646
+
| <a name="encoding-description"></a>description | `string` | A brief description of the media type. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation. |
1642
1647
| <a name="encoding-content-type"></a>contentType | `string` | The `Content-Type` for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. `image/png`) or a wildcard media type (e.g. `image/*`). Default value depends on the property type as shown in the table below. |
1643
1648
| <a name="encoding-headers"></a>headers | Map[`string`, [Header Object](#header-object) \| [Reference Object](#reference-object)] | A map allowing additional information to be provided as headers. `Content-Type` is described separately and SHALL be ignored in this section. This field SHALL be ignored if the media type is not a `multipart`. |
1644
1649
@@ -1929,7 +1934,7 @@ Describes a single response from an API operation, including design-time, static
1929
1934
| <a name="response-summary"></a>summary | `string` | A short summary of the meaning of the response. |
1930
1935
| <a name="response-description"></a>description | `string` | A description of the response. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation. |
1931
1936
| <a name="response-headers"></a>headers | Map[`string`, [Header Object](#header-object) \| [Reference Object](#reference-object)] | Maps a header name to its definition. [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#section-5.1) states header names are case insensitive. If a response header is defined with the name `"Content-Type"`, it SHALL be ignored. |
1932
-
| <a name="response-content"></a>content | Map[`string`, [Media Type Object](#media-type-object)] | A map containing descriptions of potential response payloads. The key is a media type or [media type range](https://www.rfc-editor.org/rfc/rfc9110.html#appendix-A) and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"` |
1937
+
| <a name="response-content"></a>content | Map[`string`, [Media Type Object](#media-type-object) \| [Reference Object](#reference-object)] | A map containing descriptions of potential response payloads. The key is a media type or [media type range](https://www.rfc-editor.org/rfc/rfc9110.html#appendix-A) and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"` |
1933
1938
| <a name="response-links"></a>links | Map[`string`, [Link Object](#link-object) \| [Reference Object](#reference-object)] | A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for [Component Objects](#components-object). |
1934
1939
1935
1940
This object MAY be extended with [Specification Extensions](#specification-extensions).
@@ -2449,7 +2454,7 @@ Using `content` with a `text/plain` media type is RECOMMENDED for headers where
2449
2454
2450
2455
| Field Name | Type | Description |
2451
2456
| ---- | :----: | ---- |
2452
-
| <aname="header-content"></a>content | Map[`string`, [Media Type Object](#media-type-object)]| A map containing the representations for the header. The key is the media type and the value describes it. The map MUST only contain one entry. |
2457
+
| <aname="header-content"></a>content | Map[`string`, [Media Type Object](#media-type-object)\|[Reference Object](#reference-object)]| A map containing the representations for the header. The key is the media type and the value describes it. The map MUST only contain one entry. |
0 commit comments