Skip to content

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

@that-ambuj

Description

@that-ambuj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions