-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
How to define common parameters in OpenAPI spec? #321
Comments
This is not supported yet, but I can add it if you need it. |
It's not critical but it would be a nice win, my spec is currently getting very long due to the repeating the same params with the same long descriptions every time. |
You are right, this is a low priority job. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Let's say I have code like this:
The relevant part of the spec that this generates is:
As you can see, the resulting spec has the parameter right there. Imagine I had 10 endpoints that took in this address parameter, there would be a lot of repetition. To address this, OpenAPI specs can have a section like this:
Is it possible to express this with Poem? I've been searching the code but can't find anything that generates this
parameters
section.The text was updated successfully, but these errors were encountered: