Skip to content

Add deprecated camelCase aliases to Pydantic model fields #706

@vdusek

Description

@vdusek

Context

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.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions