Skip to content

DTO and ObjectMapper missing @id and @type #7614

@alexandre-castelain

Description

@alexandre-castelain

API Platform version(s) affected: api-platform/state:4.2.10

Description
Using DTO and ObjectMapper, the @type and @id are not properly set.

How to reproduce

Possible Solution
The problem comes with this commit.

As you can see in the screenshots below, the commit fixes another problem where the DTO was not used for deserialization.

Additional Context

Before 4.2.10 :

Image

After 4.2.10 :

Image

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