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
{{ message }}
Repository navigation
Add deprecated camelCase aliases to Pydantic model fields #706
In v2, resource client methods returned plain dicts with camelCase keys (e.g. run['defaultDatasetId']). In v3, they return Pydantic models with snake_case attributes (e.g. run.default_dataset_id).
To ease migration, we should add camelCase attribute access as deprecated aliases on the Pydantic models. For example, run.defaultDatasetId would still work but emit a deprecation warning pointing users to run.default_dataset_id.
Here, we would have to introduce a custom ApifyBaseModel(BaseModel) with an overridden __getattr__ dunder method and update the postprocess script. Do we want to do that? I'm for #756 but not sure about this 🙂. Or did you think about something else? cc @janbuchar
Activity
vdusek commentedon May 14, 2026
Here, we would have to introduce a custom
ApifyBaseModel(BaseModel)with an overridden__getattr__dunder method and update the postprocess script. Do we want to do that? I'm for #756 but not sure about this 🙂. Or did you think about something else? cc @janbucharvdusek commentedon May 18, 2026
Closing as not planned after discussion with @janbuchar.