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

SQLite DB parameter factory incorrectly serializing tags as dictionary to string #66

Closed tnc1997 closed 4 months ago

tnc1997 commented 4 months ago

Describe the bug The SqliteDbParameterFactory is incorrectly serializing configuration setting tags as dictionary ToString e.g.

System.Collections.Generic.Dictionary`2[System.String,System.String]

Current behavior Steps to reproduce the behavior:

  1. Add a configuration setting with some tags.
  2. Observe the tags incorrectly serialized in the database.

Expected behavior The configuration setting tags should be serialized as a JSON object.

Additional context https://github.com/tnc1997/azure-app-configuration-emulator/blob/eea8f1b0c26e43186ff0828533a84067298fdc1a/src/AzureAppConfigurationEmulator.Common/Models/ConfigurationSetting.cs#L14 https://github.com/tnc1997/azure-app-configuration-emulator/blob/eea8f1b0c26e43186ff0828533a84067298fdc1a/src/AzureAppConfigurationEmulator.Data.Sqlite/SqliteDbParameterFactory.cs#L17