Open clotodex opened 2 weeks ago
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 https://github.com/juhaku/utoipa/issues/465
Yeah it actually touches the same topic.
(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:
struct Rectangle { width: f64, height: f64, }
struct Triangle { base: f64, height: f64, }
// Define the enum that wraps the different shape structs enum Shape { Circle(Circle), Rectangle(Rectangle), Triangle(Triangle), }