ProbablyClem / utoipauto

Rust Macros to automate the addition of Paths/Schemas to Utoipa crate, simulating Reflection during the compilation phase
Apache License 2.0
108 stars 10 forks source link

Add support for discovery of Enum schemas #5

Closed metent closed 8 months ago

metent commented 8 months ago

Schemas can also be represented using enums which which are not parsed by utoipauto currently.

ProbablyClem commented 8 months ago

I know @tnibler started working on it. Any news ? Otherwise it should be a simple improvement, PR welcomed

tnibler commented 8 months ago

Just copy-pasting the function for parsing structs does it even if it's dirty: https://github.com/tnibler/utoipauto/commit/f45337af48f6009e270a5b31ca9a72bd23d20817 (patch)

Unfortunately I don't have time to make a PR right now :/

saman3d commented 8 months ago

just pushed the PR #6

ProbablyClem commented 8 months ago

Thanks guys for your work. Just merged the PR, will make a new release