Skip to content

Commit e5ef16e

Browse files
committed
edit Special Considerations for multipart Content
1 parent e6ec613 commit e5ef16e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

versions/3.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,9 +1413,9 @@ Note that in the above example, the contents in the `requestBody` MUST be string
14131413

14141414
When passing complex objects in the `x-www-form-urlencoded` content type, the default serialization strategy of such properties is described in the `parameterContent` section as `form`.
14151415

1416-
##### Special Considerations for `multipart` content
1416+
##### Special Considerations for `multipart` Content
14171417

1418-
It is common to use `multipart/form-data` as a `Content-Type` when transferring request bodies to operations. In contrast to 2.0, a `schema` is REQUIRED to define the input parameters to the operation when using `multipart` content. This allows complex structures as well as supporting mechanisms for multiple file uploads.
1418+
It is common to use `multipart/form-data` as a `Content-Type` when transferring request bodies to operations. In contrast to 2.0, a `schema` is REQUIRED to define the input parameters to the operation when using `multipart` content. This supports complex structures as well as supporting mechanisms for multiple file uploads.
14191419

14201420
When passing in `multipart` types, boundaries MAY be used to separate sections of the content being transferred — thus, the following default `Content-Type`s are defined for `multipart/*`:
14211421

@@ -1456,7 +1456,7 @@ requestBody:
14561456
type: '#/components/schemas/Address'
14571457
```
14581458
1459-
In scenarios where more control is needed over the Content-Type for `multipart` request bodies, an `encoding` attribute is introduced. This attribute is _only_ applicable to `multipart/*` and `x-www-form-urlencoded` request bodies.
1459+
An `encoding` attribute is introduced to give you more control than boundaries provides over the Content-Type for `multipart` request bodies. This attribute is _only_ applicable to `multipart/*` and `x-www-form-urlencoded` request bodies.
14601460

14611461
#### <a name="encodingObject"></a>Encoding Object
14621462

0 commit comments

Comments
 (0)