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
As a developer, I want to know what exactly an SDK method, for example Accounts.get(), will return. It would be way more useful for this method to return an Account object with all the fields correctly typed than to receive json as I do at the moment; which leads to me having to write my own models and parsing the json into those (+ error handling ofc).
🎤 Pitch
Since the schema for e.g. Account is available in the OpenAPI spec, it should be possible to translate it into some form of dataclass. This could be the included dataclasses.dataclass or a pydantic.BaseModel, depending on your preferences regarding extra dependencies.
👀 Have you spent some time to check if this issue has been raised before?
🔖 Feature description
As a developer, I want to know what exactly an SDK method, for example
Accounts.get()
, will return. It would be way more useful for this method to return anAccount
object with all the fields correctly typed than to receive json as I do at the moment; which leads to me having to write my own models and parsing the json into those (+ error handling ofc).🎤 Pitch
Since the schema for e.g.
Account
is available in the OpenAPI spec, it should be possible to translate it into some form of dataclass. This could be the includeddataclasses.dataclass
or apydantic.BaseModel
, depending on your preferences regarding extra dependencies.👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: