utoipauto icon indicating copy to clipboard operation
utoipauto copied to clipboard

Is there way to specify an external crate for auto discovery?

Open that-ambuj opened this issue 8 months ago • 2 comments

Hi, I have forked a rust project which has a lot of huge types, so I've added utoipa::ToSchema on all the types but now I need register them recursively, which is a lot of work.

I've seen that this library takes path to the module. Is there any way I can specify the module of an external crate like some_lib::api and it would work on that?

The only hack I can think of is to put the git repo as submodule and a cargo workspace member and then specify the path. I hope there is a better solution or one that can be implemented.

that-ambuj avatar Jun 15 '24 12:06 that-ambuj