Serializability of instance objects #1496
Labels
instance
Instance issues, bugs and feature requests
priority:medium
Improvements that are not the main priority
I recently needed to serialize some objects from the go SDK and noticed that the objects do not serialize/deserialize consistently with the JSON encoding.
This is due to
json:"-"
tags in the go objects from the SDK.Exemple:
I understand that this makes sense when generating request bodies because these fields are actually passed in the url. But, as a user of the SDK this behaviour is surprising and makes using these objects outside of just api requests difficult.
So i think you should either:
A possible workaround is having exported objects without the json tags and implementing internal objects that have the same structure but include the tags.
Example:
The text was updated successfully, but these errors were encountered: