HarmonyCore icon indicating copy to clipboard operation
HarmonyCore copied to clipboard

System.Text.Json encodes synergy internal fields by default

Open hippiehunter opened this issue 4 years ago • 0 comments

Starting in 3.1 the default serializer in aspnet core is System.Text.Json. There are some behavior differences around what fields are included in serialization by default. This impacts Harmony Core projects that are not using the OData Serializer, but are just returning objects directly, SignalR hubs and plain aspnet core controllers for xfServer+ migration are the two project types that are effected.

The solution to this looks like we should add an additional template that makes a partial class, tagging it with a custom per type converter that we also generate. These generators will be significantly faster than the ones provided by default or by OData.

hippiehunter avatar Apr 20 '20 18:04 hippiehunter