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
@@ -931,15 +930,14 @@ Field Name | Type | Description
931
930
<a name="parameterExample"></a>example | Any | Example of the media type. The example SHOULD match the specified schema and encoding properties if present. The `example` object is mutually exclusive to the `examples` object. Furthermore, if referencing a `schema` which contains an example, the `example` value SHALL _override_ the the example provided by the schema. To represent examples of media types that cannot naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.
932
931
<a name="parameterExamples"></a>examples | Map[ `string`, [Example Object](#exampleObject) \| [Reference Object](#referenceObject)] | Examples of the media type. Each example SHOULD contain a value in the correct format as specified in the parameter encoding. The `examples` object is mutually exclusive to the `example` object. Furthermore, if referencing a `schema` which contains an example, the `examples` value SHALL _override_ the example provided by the schema.
933
932
934
-
For more complex scenarios a [Content Object](#contentObject) can be used to define the media type and schema of the parameter.
933
+
For more complex scenarios the [`content`](#parameterContent) can be used to define the media type and schema of the parameter.
935
934
A parameter MUST contain either a `schema` property, or a `content` property, but not both.
936
-
When `example` or `examples` are provided in conjunction with the `schema` object,
937
-
the example MUST follow the prescribed serialization strategy for the parameter.
935
+
When `example` or `examples` are provided in conjunction with the `schema` object, the example MUST follow the prescribed serialization strategy for the parameter.
938
936
939
937
940
938
Field Name | Type | Description
941
939
---|:---:|---
942
-
<a name="parameterContent"></a>content | [Content Object](#contentObject) | The content of the parameter.
940
+
<a name="parameterContent"></a>content | Map[`string`, [Media Type Object](#mediaTypeObject)] | An map containing the representations for the parameter. The key is the media type and the value is used to describe it.
943
941
944
942
##### Style Values
945
943
@@ -1103,7 +1101,7 @@ Describes a single request body.
1103
1101
Field Name | Type | Description
1104
1102
---|:---:|---
1105
1103
<a name="requestBodyDescription"></a>description | `string` | A brief description of the request body. This could contain examples of use. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
1106
-
<a name="requestBodyContent"></a>content | [Content Object](#contentObject) | **Required.** The content of the request body.
1104
+
<a name="requestBodyContent"></a>content | Map[`string`, [Media Type Object](#mediaTypeObject)] | **Required.** The content of the request body. The key is the media type and the value is used to describe it.
1107
1105
<a name="requestBodyRequired"></a>required | `boolean` | Determines if the request body is required in the request. Defaults to `false`.
1108
1106
1109
1107
@@ -1216,104 +1214,8 @@ content:
1216
1214
```
1217
1215
1218
1216
1219
-
#### <a name="contentObject"></a>Content Object
1220
-
1221
-
Describes a set of supported media types. A Content Object can be used in [Request Body Object](#requestBodyObject),
1222
-
[Parameter Objects](#parameterObject), [Header Objects](#headerObject), and [Response Objects](#responseObject).
1223
-
1224
-
##### Patterned Fields
1225
-
Field Pattern | Type | Description
1226
-
---|:---:|---
1227
-
<a name="contentMediaType"></a>{mediaType} | [Media Type Object](#mediaTypeObject) | A media type that is supported by this container. The key should be the media type and the value is used to describe it.
#### <a name="mediaTypeObject"></a>Media Type Object
1316
-
Each Media Type Object provides schema and examples for a the media type identified by its key. Media Type Objects can be used in a [Content Object](#contentObject).
1218
+
Each Media Type Object provides schema and examples for a the media type identified by its key.
1317
1219
1318
1220
##### Fixed Fields
1319
1221
Field Name | Type | Description
@@ -1634,7 +1536,7 @@ Field Name | Type | Description
1634
1536
---|:---:|---
1635
1537
<a name="responseDescription"></a>description | `string` | **Required.** A short description of the response. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
1636
1538
<a name="responseHeaders"></a>headers | Map[`string`, [Header Object](#headerObject) \| [Reference Object](#referenceObject)] | Maps a header name to its definition. Note that [RFC7230](https://tools.ietf.org/html/rfc7230#page-22) states header names are case insensitive. If a response header is defined with the name `"Content-Type"`, it SHALL be ignored.
1637
-
<a name="responseContentObject"></a>content | [Content Object](#contentObject) | An object containing descriptions of potential response payloads.
1539
+
<a name="responseContentObject"></a>content | Map[`string`, [Media Type Object](#mediaTypeObject)] | An map containing descriptions of potential response payloads. The key is the media type and the value is used to describe it.
1638
1540
<a name="responseLinks"></a>links | Map[`string`, [Link Object](#linkObject) \| [Reference Object](#referenceObject)] | 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](#componentsObject).
1639
1541
1640
1542
This object can be extended with [Specification Extensions](#specificationExtensions).
0 commit comments