You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: Fenetre@2b151fe
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.
The text was updated successfully, but these errors were encountered:
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: Fenetre@2b151fe
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.
The text was updated successfully, but these errors were encountered: