serde-yaml icon indicating copy to clipboard operation
serde-yaml copied to clipboard

Structs not being deserialized properly

Open IgnisDa opened this issue 2 years ago • 1 comments

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 avatar Aug 04 '22 17:08 IgnisDa

Basically it is not able to deserialize this value correctly:

image

IgnisDa avatar Aug 04 '22 17:08 IgnisDa

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

dtolnay avatar Aug 13 '22 07:08 dtolnay