Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
Comments
✨ Allow hiding from OpenAPI (and Swagger UI)Query,Cookie,Header, andPath parameters#3144
Conversation
codecovbot commentedMay 1, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #3144 +/- ##========================================== Coverage 100.00% 100.00% ========================================== Files 504 509 +5 Lines 12707 12807 +100 ==========================================+ Hits 12707 12807 +100
Continue to review full report at Codecov.
|
📝 Docs preview for commit685532c at:https://608d27c8521eb7158616ef14--fastapi.netlify.app |
…meters-in-openapi-spec
astraldawn commentedMay 21, 2021
@jordantshaw no idea but I have updated the request with a code sample from the original issue. Hope that will speed up the review. |
HIRANO-Satoshi commentedMay 21, 2021
This is a useful PR for me, too. |
elrik75 commentedMay 28, 2021
Very useful for me too to remove all |
marlenekoh commentedMay 31, 2021
Please merge this!! This is a super useful feature! 😊😊 |
mamicahencarnacion commentedJun 8, 2021
hello, any updates on this? this will be a really helpful additiona feature 👍 |
jordantshaw commentedJun 23, 2021
@tiangolo Any updates on when this will merged? Looks like a lot of people would find this very helpful. |
einstux commentedAug 23, 2021
@tiangolo Ping? I would also be very delighted to see this feature :3 |
phuong commentedSep 16, 2021
@tiangolo Any update for this, really helpful |
yezz123 left a comment
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.
BlueMagma2 commentedSep 23, 2021
Joining the gang, I would find this very useful too |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Query,Cookie,Header, andPath parameters📝 Docs preview for commit8b60572 at:https://61ed7670c8634ec6d8ce1542--fastapi.netlify.app |
📝 Docs preview for commitc49e01c at:https://61ed78f66a86fc22f4026592--fastapi.netlify.app |
📝 Docs preview for commitfcf3c1c at:https://61ed79c4bc1bd1bb22e41376--fastapi.netlify.app |
tiangolo commentedJan 23, 2022
Awesome, thank you@astraldawn! ☕ Thanks everyone for the discussion! 🍰 I updated a bit the tests and added source examples (and tests) for Python 3.10. I was thinking that maybe it could make sense to support also body/form-data, but the implementation would be non-trivial, or it would have to be a per-route This is available in FastAPI version |
…er`, and `Path` parameters (fastapi#3144)Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
mangiahsan commentedDec 24, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This is a fantastic feature addition—thank you for this! 🎉 I wanted to share an alternative approach I’ve used in a similar context where I needed to exclude certain fields from the OpenAPI schema for a cleaner API documentation. My use case involved building an OAuth2-like authentication schema where fields like Here’s the implementation I used, leveraging In this approach, I’m curious about how this compares to the Thank you again for this valuable addition—it’s going to make handling such use cases a lot more intuitive! 😊 |
Uh oh!
There was an error while loading.Please reload this page.
Add parameter
include_in_schemato partially address#1708 for subclasses ofParam:Cookie,Header,PathandQueryImplements the
Paramportion of#1708 (comment), relevant parts of code sample reproduced below: