Nongzhsh / Awesome.Net.WritableOptions

Awesome.Net.WritableOptions can update values into appsetting.json
MIT License
12 stars 4 forks source link

Fix the bug of deserializing enum type properties. #5

Closed VAllens closed 2 years ago

VAllens commented 2 years ago

We should openly allow developers to modify the default serialization options.

Since the merged of this PR 3, two issues arise here:

  1. Properties of generic types that have definitions is enum types will throw an exception when deserialized.
  2. [IgnoreDataMember] attribute are no longer supported. After serialization, you will see undesired properties in the json file, unless you mark them with the new [JsonIgnore] attribute.

All previous stability tests based on this component will be invalidated.

Because the System.Text.Json component only support the [System.Text.Json.Serialization.JsonIgnoreAttribute] attribute, not the [IgnoreDataMember] attribute

VAllens commented 2 years ago

Releases:

  1. The Update method supports using custom json serialization options
  2. Add target framework support: .NET Framework 4.6.1, .NET Standard 2.1, .NET 5.0, .NET 6.0
  3. Fix the bug of deserializing enum type properties
  4. Embed git commit hash to AssemblyInformationalVersion