-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Hi! 👋
I'm playing around with this crate and ran into an issue where schemas (and I'm guessing paths) aren't detected when behind a cfg_attr
flag. E.g:
Works:
#[derive(ToSchema)]
struct Todo {
// ...
}
Doesn't work:
#[cfg_attr(feature = "openapi", derive(ToSchema))]
struct Todo {
// ...
}
Essentially, my use case is to only generate the OpenAPI spec when writing it to a file in my CI step, and I don't want to have to compile all my utoipa
macros when running the webserver normally.
Thanks for the library, it's really nice!
RemiBardon and ChosunOne
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed