Closed warriordog closed 1 year ago
Solution may involve moving this to TypeMap
System.Text.Json has a built-in overflow JSON feature, but it wont quite work since we convert into multiple subset entities. One sub-optimal workaround is this:
This works because all non-overflow properties will be missing from at least one entity, which means that the union set is equal to the set of unmapped properties. There's a major downside, which is performance. We have to convert every extra property multiple times, and then do an additional pass to compute the final set. That is far from ideal.
Another option is this:
Downside: special handling is needed to handle the case where a property is changed to null or another ignored value. This may not be possible.
Done. All tests are now passing!
Regression due to converter rewrite