-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Bug] Introspect not working with flatten
and (possibly) serde_with
#38
Comments
Hi! Thank you for filing your issue! I am not aware of how it should work together (not usually use serde_with), can you please provide the examples with the expected results? |
Sure. Here you go. I've edited my bug report to include jsons |
So it MAY work with |
flatten
and serde_with
flatten
and (possibly) serde_with
I have just noticed you use the |
Que? There is no such a crate... Also https://github.com/iddm/serde-aux/blob/master/src/serde_introspection.rs#L35
I literally took it from this repo. See docs |
Oh, I apologise! It wasn't me who added it, and I had completely forgotten about its existence. The |
No worries, it's the beauty of the OS projects ;)
Thanks a lot! And obviously, thanks for your effort in maintaining this project! |
Description
Structs with flattened argument are improperly introspected. Any introspection of such a struct results in the empty array. Cannot determine if
serde_with
causes unexpected behaviors, because it's dependent on theflatten
Unresolved issues
flatten
working as expectedserde_with
prefix is working as expectedExample
ser.rs
main.rs
stdout
The text was updated successfully, but these errors were encountered: