Skip to content

Commit 9b036bb

Browse files
committed
Fixed encoding stuff
1 parent 20452d6 commit 9b036bb

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

versions/3.0.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,28 +1247,14 @@ In scenarios where more control is needed over the Content-Type for `multipart`
12471247

12481248
#### <a name="encodingObject"></a>Encoding Object
12491249

1250-
An object representing multipart region encoding for `requestBody` objects
1250+
An object representing multipart region encoding for `requestBody` objects.
12511251

12521252
##### Patterned Fields
12531253
Field Pattern | Type | Description
12541254
---|:---:|---
1255-
<a name="encodingObjectProperty"></a>The property to apply encoding to | [Encoding Property](#encodingProperty) <span>&#124;</span> [Encoding](#encoding) | The field name to apply special encoding attributes to. This field MUST exist in the schema as a property.
1255+
<a name="encodingProperty"></a>{property} | [Encoding Property Object](#encodingPropertyObject) <span>&#124;</span> [Encoding](#encoding) | The property name to which the special encoding are applied. This field MUST exist in the schema as a property.
12561256

1257-
#### <a name="encoding"></a>Encoding
1258-
1259-
A single encoding definition applied to a single schema property
1260-
1261-
##### Fixed Fields
1262-
Field Name | Type | Description
1263-
---|:---:|---
1264-
<a name="encodingContentType"></a>contentType | `string` | The content-type to use for encoding a specific property. Default value depends on the property type: for `string` with `format` being `binary` - `application/octet-stream`; for other primitive types - `plain/text`; for `object` - `application/json`; for `array` - the default is defined based on the inner type.
1265-
<a name="encodingHeaders"></a>Headers | `object` | A string map allowing additional information to be provided as headers, for example `Content-Disposition`. Note `Content-Type` is described separately and will be ignored from this section.
1266-
<a name="encodingStyle"></a>style | `string` | The content-type to use for encoding a specific property. See (#parameterContent) for details on the [`style`](#parameterStyle) property. The behavior follows the same values allowed for `query` parameters, including default values.
1267-
<a name="encodingExplode"></a>explode | `boolean` | When this is true, property values of type `array` or `object` generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When [`style`](#encodingStyle) is `form`, the default value is `true`. For all other styles, the default value is `false`.
1268-
1269-
This object can be extended with [Specification Extensions](#specificationExtensions).
1270-
1271-
##### Encoding Object Examples
1257+
##### Encoding Object Example
12721258

12731259
```yaml
12741260
requestBody:
@@ -1303,6 +1289,20 @@ requestBody:
13031289
contentType: image/png, image/jpeg
13041290
```
13051291

1292+
#### <a name="encodingPropertyObject"></a>Encoding Property Object
1293+
1294+
A single encoding definition applied to a single schema property.
1295+
1296+
##### Fixed Fields
1297+
Field Name | Type | Description
1298+
---|:---:|---
1299+
<a name="encodingContentType"></a>contentType | `string` | The content-type to use for encoding a specific property. Default value depends on the property type: for `string` with `format` being `binary` - `application/octet-stream`; for other primitive types - `plain/text`; for `object` - `application/json`; for `array` - the default is defined based on the inner type.
1300+
<a name="encodingHeaders"></a>Headers | `object` | A string map allowing additional information to be provided as headers, for example `Content-Disposition`. Note `Content-Type` is described separately and will be ignored from this section.
1301+
<a name="encodingStyle"></a>style | `string` | The content-type to use for encoding a specific property. See (#parameterContent) for details on the [`style`](#parameterStyle) property. The behavior follows the same values allowed for `query` parameters, including default values.
1302+
<a name="encodingExplode"></a>explode | `boolean` | When this is true, property values of type `array` or `object` generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When [`style`](#encodingStyle) is `form`, the default value is `true`. For all other styles, the default value is `false`.
1303+
1304+
This object can be extended with [Specification Extensions](#specificationExtensions).
1305+
13061306
#### <a name="responsesObject"></a>Responses Object
13071307

13081308
A container for the expected responses of an operation.

0 commit comments

Comments
 (0)