Skip to content

Multiple aliases for field #176

Open
@CralixRaev

Description

@CralixRaev

Is your feature request related to a problem? Please describe.
Sometimes you need to add multiple aliases for one field (e.g. one endpoint in poorly-designed api returns id with name "id", and another one returns it as "product_id")

Describe the solution you'd like
Add an feature to deserialize one field by multiple different aliases

Describe alternatives you've considered
Now i just made two different fields in my dataclass, and it's very confusing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions