-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Fix copy-paste "format: binary" error #4294
Conversation
These examples got copied from 3.0.4 and apparently I forgot to adjust them for 3.1.1 and no one else noticed.
Lgtm |
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.
Looks good. 👍
I left some comments to add contentEncoding
in places where I thought it added clarity. When I first read this line:
default for a string without
contentEncoding
istext/plain
my thought was "default what"? So my changes are intended to fix that but I'll defer to your judgement to decide if this is necessary.
@@ -1800,17 +1800,17 @@ requestBody: | |||
schema: | |||
type: object | |||
properties: | |||
# default for a string without `contentEncoding` is `text/plain` |
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.
Could we instead say:
# default for a string without `contentEncoding` is `text/plain` | |
# default `contentEncoding` for a string is `text/plain` |
# default for a schema without `type` is `application/octet-stream` | ||
profileImage: {} | ||
|
||
# default for arrays is based on the type in the `items` |
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.
and
# default for arrays is based on the type in the `items` | |
# default `contentEncoding` for arrays is based on the type in the `items` |
@@ -1828,31 +1828,27 @@ requestBody: | |||
schema: | |||
type: object | |||
properties: | |||
# No Encoding Object, so use default `text/plain` |
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.
and
# No Encoding Object, so use default `text/plain` | |
# No Encoding Object, so use default `contentEncoding` `text/plain` |
type: string | ||
format: uuid | ||
|
||
# Encoding Object overrides the default `application/json` |
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.
and maybe
# Encoding Object overrides the default `application/json` | |
# Encoding Object overrides the default `contentEncoding` `application/json` |
Fixes #4293
These examples got copied from 3.0.4 and apparently I forgot to adjust them for 3.1.1 and no one else noticed.