Stateful Serdes, System.Text.Json UnionEncoder, STJ autoUnion mode
NOTE: Unlisted in favor of 2.3.1
, which has a critical fix for autoUnion
mode's handling of option
and list
types.
Added
SystemTextJson.UnionOrTypeSafeEnumConverterFactory
: Global converter that automatically applies aTypeSafeEnumConverter
to all Discriminated Unions that support it, andUnionConverter
to all others #69SystemTextJson.Options(autoUnion = true)
: Automated wireup ofUnionOrTypeSafeEnumConverterFactory
#69SystemTextJson.UnionConverter
: Port ofNewtonsoftJson
equivalent started in #43 #59 🙏 @NickDarvey
Changed
Serdes
: ChangedSerdes
to be stateful, requiring a specific set ofOptions
/Settings
that are always applied consistently #70Serdes.DefaultSettings
: Updated README.md ASP.NET integration advice to reflect minor knock-on effect #70SystemTextJson
: TargetSystem.Text.Json
v6.0.1
,TypeShape
v9.0.0
#68
See CHANGELOG