mashumaro icon indicating copy to clipboard operation
mashumaro copied to clipboard

Multiple aliases for field

Open CralixRaev opened this issue 8 months ago • 6 comments

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

CralixRaev avatar Nov 04 '23 14:11 CralixRaev