Skip to content

Deserialization of a foreign key with a name other than the field name. #8478

@smoothbronx

Description

@smoothbronx

Good day to the community and the author.
There is such a request to my server:

{
   ...
    "https://example.com/username": "username",
   ...
}

I need to deserialize it so that in the automatically generated scheme this key remains the same "https://example.com/username", but in the serializer itself it is displayed as username. Can you give advice on how to do it correctly and is it possible to do it at all?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions