Skip to content

Breaking change using genId property configuration #7261

@GSadee

Description

@GSadee

API Platform version(s) affected: 4.1.17

Description
After the PR, the behaviour of using genId has been changed.

How to reproduce
In Sylius, we set genId="false" on a single property (here). After the changes introduced by this PR, all properties nested inside it now inherit genId="false" as well, which causes the returned IRI to be using a different strategy than before. This if statement is now ommitted. Even though I explicitly declare genId="true" for those child properties in a separate property configuration, that override is ignored.

Possible Solution
Be able to explicitly define the genId for given property.

Additional Context
Failing builds on Sylius: https://github.com/Sylius/Sylius/actions/runs/15963124014/job/45018806151#step:11:37

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