@@ -2139,8 +2139,9 @@ requestBody:
2139
2139
name:
2140
2140
type: string
2141
2141
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.
2144
2145
type: string
2145
2146
contentEncoding: base64url
2146
2147
encoding:
@@ -2186,17 +2187,21 @@ requestBody:
2186
2187
schema:
2187
2188
type: object
2188
2189
properties:
2189
- # default for a string without ` contentEncoding` is `text/plain`
2190
+ # default content type for a string without ` contentEncoding`
2191
+ # is `text/plain`
2190
2192
id :
2191
2193
type : string
2192
2194
format : uuid
2193
2195
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`
2195
2198
profileImage : {}
2196
2199
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`
2200
2205
addresses :
2201
2206
type : array
2202
2207
items :
@@ -2220,7 +2225,7 @@ requestBody:
2220
2225
type : string
2221
2226
format : uuid
2222
2227
2223
- # Encoding Object overrides the default `application/json`
2228
+ # Encoding Object overrides the default `application/json` content type
2224
2229
# for each item in the array with `application/xml; charset=utf-8`
2225
2230
addresses :
2226
2231
description : addresses in XML format
0 commit comments