Speedygeek / ZendeskApi_v2

C# wrapper for the Zendesk API
Other
170 stars 200 forks source link

Include raw response in the object #546

Open vgregoirecoveo opened 2 years ago

vgregoirecoveo commented 2 years ago

Since all the fields are not availables on all objects, it would be useful to include the raw response directly in the object. This would give the SDK users a greater flexibility in using the response from the API. It would also help in the case of Zendesk adding a new field on an object by making it available without having to wait for a change in the SDK.

Please let me know what you think of this!

mozts2005 commented 2 years ago

I would be willing to add this option to the library. using the Newtonsoft.Json JsonExtensionData would likely be the best option but testing with the Zendesk API would need to be done to make sure this work Bidirectionally and that the API will not fail with an error when read-only values are added by the Zendesk team.