dtolnay / serde-yaml

Strongly typed YAML library for Rust
Apache License 2.0
965 stars 164 forks source link

Structs not being deserialized properly #302

Closed IgnisDa closed 2 years ago

IgnisDa commented 2 years ago

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 commented 2 years ago

Basically it is not able to deserialize this value correctly:

image
dtolnay commented 2 years ago

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