-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Add support for adding OpenAPI schema for GET requests with a body #1626
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1626 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 227 239 +12
Lines 6810 7047 +237
==========================================
+ Hits 6810 7047 +237
Continue to review full report at Codecov.
|
@IamCathal could you take a look at this? |
|
||
@app.get("/product") | ||
async def create_item(product: Product): | ||
pass |
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.
@victorphoenix3 i think this is where the coverage is missing so try adding # pragma: no cover
here
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.
hey thanks @rkbeatss . It worked!
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.
Thanks for the help @rkbeatss ! 🤓
f416e25
to
065be3c
Compare
@tiangolo The PR is ready for review. |
Awesome @victorphoenix3 ! 🚀 🎉 I updated the test to check that it actually can receive a body in a Thanks for your contribution! 🍰 🎉 |
Related to #713 .