use handlers::user_handlers::get_user_by_id;
#[derive(OpenApi)]
#[openapi(
info(description = "This is an Api to get weather information"),
paths(get_user_by_id)
)]
struct ApiDoc;
I have this error: cannot find type '__path_get_user_by_id' in this scope
As in the issue mentioned above, the current workaround is simply to import the handler this way:
use handlers::user_handlers::{__path_get_user_by_id, get_user_by_id};
Am I doing something wrong? Thanks a lot in advance and also for all the great job done so far :)
Hi,
I've experienced a problem very similar to this issue: https://github.com/juhaku/utoipa/issues/1021
I'm using utoipa with Rocket.
If I do this:
I have this error:
cannot find type '__path_get_user_by_id' in this scope
As in the issue mentioned above, the current workaround is simply to import the handler this way:
use handlers::user_handlers::{__path_get_user_by_id, get_user_by_id};
Am I doing something wrong? Thanks a lot in advance and also for all the great job done so far :)