-
Notifications
You must be signed in to change notification settings - Fork 9.2k
More contentEncoding example improvements (from feedback) #4301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1746,8 +1746,9 @@ requestBody: | |||||||||
name: | ||||||||||
type: string | ||||||||||
icon: | ||||||||||
# The default with "contentEncoding" is application/octet-stream, | ||||||||||
# so we need to set image media type(s) in the Encoding Object. | ||||||||||
# The default content type with "contentEncoding" present | ||||||||||
# is application/octet-stream, so we need to set the correct | ||||||||||
# image media type(s) in the Encoding Object. | ||||||||||
type: string | ||||||||||
contentEncoding: base64url | ||||||||||
encoding: | ||||||||||
|
@@ -1800,16 +1801,19 @@ requestBody: | |||||||||
schema: | ||||||||||
type: object | ||||||||||
properties: | ||||||||||
# default for a string without `contentEncoding` is `text/plain` | ||||||||||
# default content type for a string without `contentEncoding` | ||||||||||
# is `text/plain` | ||||||||||
id: | ||||||||||
type: string | ||||||||||
format: uuid | ||||||||||
|
||||||||||
# default for a schema without `type` is `application/octet-stream` | ||||||||||
# default content type for a schema without `type` | ||||||||||
# is `application/octet-stream` | ||||||||||
Comment on lines
+1810
to
+1811
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Align with lines 1749-1750 |
||||||||||
profileImage: {} | ||||||||||
|
||||||||||
# default for arrays is based on the type in the `items` | ||||||||||
# subschema, which is an object, so `application/json` | ||||||||||
# default content type for arrays is based on the type | ||||||||||
# in the `items` subschema, which is an object here, | ||||||||||
# so the default content type for each item is `application/json` | ||||||||||
Comment on lines
+1815
to
+1816
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
addresses: | ||||||||||
type: array | ||||||||||
items: | ||||||||||
|
@@ -1833,7 +1837,7 @@ requestBody: | |||||||||
type: string | ||||||||||
format: uuid | ||||||||||
|
||||||||||
# Encoding Object overrides the default `application/json` | ||||||||||
# Encoding Object overrides the default `application/json` content type | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
# for each item in the array with `application/xml; charset=utf-8` | ||||||||||
addresses: | ||||||||||
description: addresses in XML format | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align with line 1749