Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable deriving JsonSchema on adjacent tagged enums #4

Closed
GREsau opened this issue Oct 22, 2019 · 4 comments
Closed

Enable deriving JsonSchema on adjacent tagged enums #4

GREsau opened this issue Oct 22, 2019 · 4 comments

Comments

@GREsau
Copy link
Owner

GREsau commented Oct 22, 2019

https://serde.rs/enum-representations.html#adjacently-tagged

@chipsenkbeil
Copy link

@GREsau is this feature planned anytime in the future? Any details about what is needed to get it working?

@GREsau
Copy link
Owner Author

GREsau commented Apr 29, 2020

I was holding off on this because I wasn't sure adjacent tagged enums were heavily used - but now someone's actually requested it I'm planning on working on this next 👍

GREsau added a commit that referenced this issue Apr 30, 2020
@GREsau
Copy link
Owner Author

GREsau commented Apr 30, 2020

Fixed in v0.7.2, now published to crates.io
https://crates.io/crates/schemars/0.7.2

@GREsau GREsau closed this as completed Apr 30, 2020
@chipsenkbeil
Copy link

@GREsau, finally got around to using it. Works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants