feat(NewtonsoftJson): Upconvert from Case that should be a string
- Dominant language
- F#
- Stars
- 82
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Provide an upconversion that lets you write the updated form per `TypeSafeEnumConverter`, but also accept mangled versions that predate impl of #96
i.e. read:
```
"items": [
{
"serviceId": "5c8795be52e34e82883d61babed19513",
"serviceKind": {
"Case": "ProductA"
}
},
{
"serviceId": "8a55ebbf0d404485b50da95bdb53f7b3",
"serviceKind": {
"Case": "ProductB"
}
}
]
},
```
but write:
```
"items": [
{
"serviceId": "5c8795be52e34e82883d61babed19513",
"serviceKind": "ProductB"
},
{
"serviceId": "8a55ebbf0d404485b50da95bdb53f7b3",
"serviceKind": "ProductA"
}
]
```
related: https://github.com/JamesNK/Newtonsoft.Json/issues/1662#issuecomment-1646777848
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.