The current implementation parses JSON from server while ignoring the case of field names. This behaviour is AFAIK implemented in file Issues/Issue.cs on line 22:
private readonly IDictionary<string, Field> _fields = new Dictionary<string, Field>(StringComparer.OrdinalIgnoreCase);
I am not sure why we have this behaviour -- JSON is case-sensitive and YouTrack can have two different fields that only differ in case (in my case it was fields Sprint and sprint). I was able to fix it by simply changing the comparer to StringComparer.Ordinal. I would be very happy to submit this simple change as pull request, or am I missing something?
The current implementation parses JSON from server while ignoring the case of field names. This behaviour is AFAIK implemented in file
Issues/Issue.cs
on line 22:I am not sure why we have this behaviour -- JSON is case-sensitive and YouTrack can have two different fields that only differ in case (in my case it was fields
Sprint
andsprint
). I was able to fix it by simply changing the comparer toStringComparer.Ordinal
. I would be very happy to submit this simple change as pull request, or am I missing something?Thank you.