tnc1997 / azure-app-configuration-emulator

Please note that Emulator for Azure App Configuration is unofficial and not endorsed by Microsoft.
MIT License
3 stars 3 forks source link

Serialize configuration setting tags as an empty object if null #64

Closed tnc1997 closed 4 months ago

tnc1997 commented 4 months ago

Describe the bug When the configuration setting tags property is null it is incorrectly serialized as null instead of an empty object.

Current behavior Steps to reproduce the behavior:

  1. Add a configuration setting with a null tags property.
  2. Get the configuration setting using the Azure App Configuration SDK for .NET.
  3. Observe the invalid operation exception as per the screenshot.

Expected behavior When the configuration setting tags property is null it should be serialized as an empty object.

Screenshots image

Additional context Azure.Data.AppConfigurationConfigurationServiceSerializer.ReadPropertyValue