Open TheEnbyperor opened 2 years ago
Duplicate of #1504.
This was fixed (partially) by #2387, the in-place part is fixed in #2443
This issue has not yet been fully resolved. struct + flatten + alias works as expected, but enum + flatten + alias does not. Just a reminder.
Given an enum with a name and an alias, such as below.
Then put in a struct as such, and flattened.
And when an enum value with the alias name is presented to the deserializer, an error such as "no variant of enum PSCNatureOfControls found in flattened data" is given. When the enum variant is changed from alias to rename, it works as expected.