Skip to content

Commit a922855

Browse files
authored
Merge pull request #4301 from handrews/copy-paste-2
More contentEncoding example improvements (from feedback)
2 parents 9291879 + 628e971 commit a922855

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/oas.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -1746,8 +1746,9 @@ requestBody:
17461746
name:
17471747
type: string
17481748
icon:
1749-
# The default with "contentEncoding" is application/octet-stream,
1750-
# so we need to set image media type(s) in the Encoding Object.
1749+
# The default content type with "contentEncoding" present
1750+
# is application/octet-stream, so we need to set the correct
1751+
# image media type(s) in the Encoding Object.
17511752
type: string
17521753
contentEncoding: base64url
17531754
encoding:
@@ -1800,16 +1801,19 @@ requestBody:
18001801
schema:
18011802
type: object
18021803
properties:
1803-
# default for a string without `contentEncoding` is `text/plain`
1804+
# default content type for a string without `contentEncoding`
1805+
# is `text/plain`
18041806
id:
18051807
type: string
18061808
format: uuid
18071809

1808-
# default for a schema without `type` is `application/octet-stream`
1810+
# default content type for a schema without `type`
1811+
# is `application/octet-stream`
18091812
profileImage: {}
18101813

1811-
# default for arrays is based on the type in the `items`
1812-
# subschema, which is an object, so `application/json`
1814+
# default content type for arrays is based on the type
1815+
# in the `items` subschema, which is an object here,
1816+
# so the default content type for each item is `application/json`
18131817
addresses:
18141818
type: array
18151819
items:
@@ -1833,7 +1837,7 @@ requestBody:
18331837
type: string
18341838
format: uuid
18351839

1836-
# Encoding Object overrides the default `application/json`
1840+
# Encoding Object overrides the default `application/json` content type
18371841
# for each item in the array with `application/xml; charset=utf-8`
18381842
addresses:
18391843
description: addresses in XML format

0 commit comments

Comments
 (0)