Closed tnibler closed 9 months ago
I just fixed it and released 0.1.2 with the fix, using replace Let me know if it fixes your issue...
Thanks for your contribution, however, you can't use local deps otherwise it can't be published to crates.io. There must be a way but I couln't find it... Can you submit a new PR with just the parsing from enum and add tests cases. Thanks
Woops sorry didn't realize. Now it's only the one change.
The /src issue has been fixed with a replace in the latest 0.1.2 release. Why would your solution be better ? Btw, please add tests when you submit a PR
I used your solution because it fixed #2 Thanks for your help
When using
utoipa
in a subcrate of a cargo workspace, macro invocations may look like:Before this change, expanded code looks like:
where
crate::src::module::thing
is incorrect and should becrate::module::thing
.This commit changes the path -> module path conversion logic to the following:
crate
src
, remove it