utoipauto icon indicating copy to clipboard operation
utoipauto copied to clipboard

Components lack full module paths

Open MiniaczQ opened this issue 1 year ago • 11 comments

Hello, we're trying out this crate for a college assignment involving a backend server.

We've setup the project to use just utoipa then proceeded to replace the declarations with this crate's macro. The derived components seem to lack the module path, so instead of crate::routing::api::audio::DeleteSamplesRequest the macro generates just DeleteSamplesRequest. And so it asks us to import it, as well as every other missing model. This is the error image

Intuition is telling me, the components should be added with the full paths. Not sure if this is a problem by design.

There are few examples where paths are added to the macro, but I don't think that's our use case. Do let me know if I'm doing something wrong.

MiniaczQ avatar Dec 07 '23 19:12 MiniaczQ