odata.net icon indicating copy to clipboard operation
odata.net copied to clipboard

Add serialization and deserialization of Dictionary<string, string> and Dictionary<string, object>

Open bdebaere opened this issue 5 years ago • 3 comments

Issues

This pull request fixes issue https://github.com/OData/WebApi/issues/438

Description

This pull request adds serialization and deserialization of Dictionary<string, string>.

Checklist (Uncheck if it is not completed)

  • [ ] Test cases added
  • [ ] Build and test with one-click build and test script passed

bdebaere avatar Oct 31 '19 23:10 bdebaere

Note that I'm unsure whether registering the type as a PrimitiveType is how you saw the implementation. I'm also unsure about what kind of test cases, if any, you'd like to see added.

bdebaere avatar Oct 31 '19 23:10 bdebaere

Also requires new KeyValuePair<Type, IEdmPrimitiveType>(typeof(Dictionary<string, string>), GetPrimitiveType(EdmPrimitiveTypeKind.DictionaryOfStringString)), in Microsoft.AspNet.OData.Shared\Formatter\EdmLibHelpers.cs.

bdebaere avatar Nov 01 '19 07:11 bdebaere

@mikepizzo Can you give me some points on how to proceed with this please?

bdebaere avatar Jun 13 '20 20:06 bdebaere