Skip to content

Commit 00b5f8f

Browse files
committed
Feedback from mkistler about contentEncoding
1 parent 1dd8c5b commit 00b5f8f

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/oas.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,8 +2139,9 @@ requestBody:
21392139
name:
21402140
type: string
21412141
icon:
2142-
# The default with "contentEncoding" is application/octet-stream,
2143-
# so we need to set image media type(s) in the Encoding Object.
2142+
# The default content type with "contentEncoding" present
2143+
# is application/octet-stream, # so we need to set the correct
2144+
# image media type(s) in the Encoding Object.
21442145
type: string
21452146
contentEncoding: base64url
21462147
encoding:
@@ -2186,17 +2187,21 @@ requestBody:
21862187
schema:
21872188
type: object
21882189
properties:
2189-
# default for a string without `contentEncoding` is `text/plain`
2190+
# default content type for a string without `contentEncoding`
2191+
# is `text/plain`
21902192
id:
21912193
type: string
21922194
format: uuid
21932195

2194-
# default for a schema without `type` is `application/octet-stream`
2196+
# default content type for a schema without `type`
2197+
# is `application/octet-stream`
21952198
profileImage: {}
21962199

2197-
# for arrays, the Encoding Object applies to each item
2198-
# individually based on that item's type, which in this
2199-
# example is an object, so `application/json`
2200+
# for arrays, the `encoding` field applies the Encoding Object
2201+
# to each item individually and determines the default content type
2202+
# based on the type in the `items` subschema, which in this example
2203+
# is an object, so the default content type for each item is
2204+
# `application/json`
22002205
addresses:
22012206
type: array
22022207
items:
@@ -2220,7 +2225,7 @@ requestBody:
22202225
type: string
22212226
format: uuid
22222227

2223-
# Encoding Object overrides the default `application/json`
2228+
# Encoding Object overrides the default `application/json` content type
22242229
# for each item in the array with `application/xml; charset=utf-8`
22252230
addresses:
22262231
description: addresses in XML format

0 commit comments

Comments
 (0)