-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Incorrect output when using serde tags #214
Comments
The issue seems to be that |
This seems like a hack, but it works for our use case: d4hines@b280b6a |
Great spot but from the looks of it this is a duplicate of #174 & 467e2b0 which have been fixed on Specta v2. However, it's worth noting your type also doesn't parse the new Serde validation built into Specta v2 so you may have problems just upgrading. This extra checking will be optional for final release but right now it's required (#217). You can checkout this Rust playground to see the runtime errors Serde would spit out: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=34f9c718cf77f18e8d47ade4e6d76ea5 |
Hello,
I noticed that when using
#[serde(tag = ...)]
like so:the outputted type is incorrect.
I've created a small reproducer here that makes the following output. On the left is actual, right is what I expect:
I'm not sure if this serde features is supported yet, but figured I'd report here anyway.
The text was updated successfully, but these errors were encountered: