-
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
feat(oas31): display file upload input when contentMediaType or contentEncoding is present #10412
Conversation
…ntEncoding is present Refs #9278
: schema.contentEncoding | ||
|
||
return ( | ||
(contentMediaType && typeof contentMediaType === "string") || |
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.
(contentMediaType && typeof contentMediaType === "string") || | |
(typeof contentMediaType === "string" && contentMediaType !== "") || |
|
||
return ( | ||
(contentMediaType && typeof contentMediaType === "string") || | ||
(contentEncoding && typeof contentEncoding === "string") |
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.
(contentEncoding && typeof contentEncoding === "string") | |
(typeof contentEncoding === "string" && contentEncoding !== "") |
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.
Let's add comment explaining the short-circuit mechanism + explicit non-empty string assertions.
Refs #9278
Implement layer 3 of #9278 (comment)