Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Structs not being deserialized properly #302

Closed
IgnisDa opened this issue Aug 4, 2022 · 2 comments · Fixed by #308
Closed

Structs not being deserialized properly #302

IgnisDa opened this issue Aug 4, 2022 · 2 comments · Fixed by #308

Comments

@IgnisDa
Copy link

IgnisDa commented Aug 4, 2022

Awesome library! Thanks!

I think I have found a bug:

I have a struct which uses Yaml tags. Here is when I print the original yaml string:
image

Here is what happens when I de-serialize the same struct:
image

As you can see !ClassValidator tag is lost when de-serializing.

@IgnisDa
Copy link
Author

IgnisDa commented Aug 4, 2022

Basically it is not able to deserialize this value correctly:

image

@dtolnay
Copy link
Owner

dtolnay commented Aug 13, 2022

Thanks! Indeed this was a bug. I've published a fix in serde_yaml 0.9.6.

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

Successfully merging a pull request may close this issue.

2 participants