-
Notifications
You must be signed in to change notification settings - Fork 197
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
[FEATURE REQUEST] Deeply / recursively export components into openapi #1025
Comments
At the moment they need to be listed manually. But I'm planning to improve this eventually to the 5.0.0 version. |
I believe this is a dup of #465 |
Yeah it actually touches the same topic. |
There is now WIP branch for work related to this one. https://github.com/juhaku/utoipa/pull/new/feature-auto-collect-schemas |
I could consider this as done, as all mandatory things for this is implemented excluding support for |
(I am using axum and the axum bindings)
I noticed that to completely export a type I also have to list all subtypes in the components.
While this offers 100% felxibility, I am trying to export generated code which means I need to import and list every single subtype manually, which is errorprone.
Example:
Then I cannot just list
Shape
in the components but have to listShape, Rectangle, Triangle, Circle
...Is this feasible? I used schemars with okapi before where they somehow made this work
The text was updated successfully, but these errors were encountered: