-
Notifications
You must be signed in to change notification settings - Fork 1.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
Improve @requestBody #1064
Comments
One more document task from this other issue, let's do it in this story together:
|
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Improve
@requestBody.array()
From @shimks
I have different plans for simplifying providing item's type for
@requestBody.array()
, and I think it takes discussion time, that's why in the first PR I just leave it as the most straight-forward syntax: providing the wholeschemaSpec
for array item.Yours is one good choice! I am writing more, will update this comment then.
From @shimks
Yes!
@requestBody()
@requestBody.float()
@requestBody.binary()
... and more
Improve multiple contents support
From @shimks
From @jannyHou
So I think a better way is creating a shortcut, e.g.
From @shimks
I'm going to list out the cases that
requestBody
may need:Now as to the cases with multiple possible content-types, I think we just leave that out of the task and create another issue for it since we're already heavily overloaded on this one anyways. If users really want to provide multiple possibly content-types for the body, they should handle it themselves anyway (imo, unless this is commonly done; it's a discussion in the other potential issue).
The text was updated successfully, but these errors were encountered: