-
-
Notifications
You must be signed in to change notification settings - Fork 177
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 get Schema added to components/parameters? #890
Comments
https://apispec.readthedocs.io/en/latest/using_plugins.html#example-flask-and-marshmallow-plugins
```py
spec.components.schema("FilterParams", schema=FilterParams)
```
|
@lafrech Thanks for the quick answer. I tried that, it works, but the schema is then added to |
You may also define parameters
https://apispec.readthedocs.io/en/latest/api_core.html#apispec.core.Components.parameter
although I'm not sure you can declare a set of parameters (not only in
apispec, but also in OpenAPI standard).
…--
Jérôme
|
Yeah you got a point here! I'm still quite new and didn't image that it would not be possible. Will close on that behalf. Thank you very much! |
For anybody interested, there is an eternally open PR to implement parameter grouping in openapi. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the following setup:
Schema
Input
Output
But it is actually not added to
components/parameters
. How can I fix this?The text was updated successfully, but these errors were encountered: