I am working with a large public schema which defines acceptable values for many objects via Enums.
I am using a StringEnumConverter with my JsonSerializer. Things seem to work fine until the serializer hits an enum whit the same name, but different case as a previous one.
I get the following exception in GetEnumNameMap(Type t) call to map.TryGetBySecond(n2, out s):
"Enum name 'Mm' already exists on enum 'LengthUom'."
This is due to a Enum named "mm" already in the dictionary.
I think that Enums are case-sensitive (as least c# does not complain).
Is their a workaround for this?