Closed rukai closed 3 years ago
Oh this looks pretty doable, ill give it a go.
A struct with no fields successfully deserializes from "Foo: []" not because its matching Foo as the struct name but because Foo is interpreted as a field which is ignored. This seems to be the root of my confusion, sorry for the erroneous issue.
I still have another problem related to typetag's handling of unit structs but ill think about it more and probably raise an issue on the typetag repo.
The following example demonstrates the issue:
I didnt check Serialize compatibility because I am only using deserialize