Skip to content

Commit 4eecc94

Browse files
author
Ron
authored
Merge pull request OAI#1174 from krishahn/special-considerations-for-multipart-content
edit Special Considerations for multipart Content
2 parents ef51bcd + 1f7bc50 commit 4eecc94

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
@@ -1412,9 +1412,9 @@ In this example, the contents in the `requestBody` MUST be stringified per [RFC1
14121412

14131413
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`.
14141414

1415-
##### Special Considerations for `multipart` content
1415+
##### Special Considerations for `multipart` Content
14161416

1417-
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.
1417+
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.
14181418

14191419
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/*`:
14201420

@@ -1455,7 +1455,7 @@ requestBody:
14551455
type: '#/components/schemas/Address'
14561456
```
14571457
1458-
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.
1458+
An `encoding` attribute is introduced to give you control over the serialization of parts of `multipart` request bodies. This attribute is _only_ applicable to `multipart/*` and `x-www-form-urlencoded` request bodies.
14591459

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

0 commit comments

Comments
 (0)