In our project we changed the default JSON.NET configuration to use a enum to string converter globally. Meaning all enums are converted to strings when serialized.
This however causes the messagebird library to stop working, this is due to the Class field in the Message.cs file being an enum, which then is serialized to a string while the underlying messagebird API expects a int.
Hello,
In our project we changed the default JSON.NET configuration to use a enum to string converter globally. Meaning all enums are converted to strings when serialized.
This however causes the messagebird library to stop working, this is due to the Class field in the Message.cs file being an enum, which then is serialized to a string while the underlying messagebird API expects a int.
We currently worked around it by making a fork and changing the Class field to an int, see: https://github.com/Fenetre/csharp-rest-api/commit/2b151fedc8d46fabcea3db8419a86990cbf2d7a1
But I imagine you would not want to fix it like this and instead use isolated JSON.NET serialization settings instead of the global once.