Skip to content

Commit 145d31c

Browse files
authored
Merge pull request OAI#932 from raymondfeng/OpenAPI.next
Fix multipart encoding example
2 parents 902ce94 + 3694e8f commit 145d31c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

versions/3.0.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ Field Name | Type | Description
10881088
<a name="contentTypeSchema"></a>schema | [Schema Object](#schemaObject) | The schema defining the type used for the request body.
10891089
<a name="contentTypeExamples"></a>examples | [Examples Array](#examplesArray) | Examples of the content type. Each example in the Examples array SHOULD be in the correct format as specified in the _content_ type. 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.
10901090
<a name="contentTypeExample"></a>example | [Example Object](#exampleObject) | Example of the content type. The example object SHOULD be in the correct format as specified in the _content_ type. 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.
1091+
<a name="contentTypeEncoding"></a>encoding | [Encoding Object](#encodingObject) | Encoding of the content type. The encoding object SHOULD only apply to `requestBody` objects when the content type is `multipart`.
10911092

10921093
##### Patterned Fields
10931094
Field Pattern | Type | Description
@@ -1291,13 +1292,13 @@ requestBody:
12911292
# default is application/octet-stream, need to declare an image type only!
12921293
type: string
12931294
format: binary
1294-
encoding:
1295-
historyMetadata:
1296-
# require XML content-type in utf-8 encoding
1297-
contentType: application/xml; charset=utf-8
1298-
profileImage:
1299-
# only accept png/jpeg
1300-
contentType: image/png, image/jpeg
1295+
encoding:
1296+
historyMetadata:
1297+
# require XML content-type in utf-8 encoding
1298+
contentType: application/xml; charset=utf-8
1299+
profileImage:
1300+
# only accept png/jpeg
1301+
contentType: image/png, image/jpeg
13011302
```
13021303

13031304
#### <a name="responsesObject"></a>Responses Object

0 commit comments

Comments
 (0)