Re-serialised data inaccurate
Some examples I've noticed:
- Dependencies defined in
{version = "x"}
format will haveoptional = false
added to them when the source file omitted the prop - A lib type will be set when the source file didn't have one
- Some empty vectors
- Potentially more
I think a solution is to add #[serde(default, skip_serializing_if = "..")]
macros above optional fields to omit them if they're holding the default value or, alternatively, turn the fields into Option<T>
which would be more accurate but also break the API more.
If either approach sounds reasonable to you, I'd be happy to go through all the struct definitions and open an MR.
Edited by Art