core icon indicating copy to clipboard operation
core copied to clipboard

Use property names from Symfony for Normalizer & Denormalizer

Open nesl247 opened this issue 7 months ago • 0 comments

API Platform version(s) affected: 4.1.7

Description
In Symfony 7.2 they merged in the change to ensure that the property names were consistent in all of the normalizer's and denormalizers. In several Denormalizers in api-platform, the property names are changed from the interfaces. This prohibits the ability to use named parameters.

While the property names are not part of Symfony BC, so if they change in the future, breakages may happen, not using the names from the interface makes it less developer friendly to use the component.

How to reproduce

Possible Solution
Change $class to $type in all denormalizers. I'm not sure if there are other inconsistencies.

Additional Context

nesl247 avatar May 14 '25 14:05 nesl247