Open rasharab opened 2 years ago
Hi @rasharab, This is an auto-generated code using swagger-codegen. For better documentation and readability you can always refer to our API documentation given here: https://developers.sendinblue.com/reference/getfolders-1 https://developers.sendinblue.com/reference/getfolderlists-1 Thanks!
We use openapi code generation tools as well and outside of possibly how you've typed the aforementioned fields in your spec, it's surprising that it's being translated to the Object type.
The larger point is that it makes end users lives more difficult as we're dealing with non-typed objects.
SDK which does not allow you to use it, somewhat kills the purpose of having SDK in the first place. What is the suggested solution? Should we cast to internal Gson classes and freeze the Gson dependency version in the build tool?
Currently, I hope that the model classes are still properly generated according to actual schema, and use this ad-hoc method to convert each object to the "proper" type (which I only assume from class name):
i.e.
i.e.
Your openspec apis also are not providing any properly types response objects for GetFolders, GetLists etc.
Is there a reason for this?