API Platform version(s) affected: 4.2.x-dev (since #7691)
Description
API platform isn't using the name converter on input DTOs
How to reproduce
Set name converter according to the documentation in api_platform.yaml
Run test suite
Additional Context
Manually setting the name converter also on the symfony side (framework.yaml) fixes the issue, so it seems that decoding the input JSON is happening via the default Symfony serializer, whose name converter is not automatically configured any more.
api_platform:
name_converter: 'serializer.name_converter.camel_case_to_snake_case'
framework:
serializer:
# name_converter: 'serializer.name_converter.camel_case_to_snake_case'
named_serializers:
foo:
name_converter: null
default_context:
skip_null_values: true
API Platform version(s) affected: 4.2.x-dev (since #7691)
Description
API platform isn't using the name converter on input DTOs
How to reproduce
Set name converter according to the documentation in
api_platform.yamlRun test suite
Additional Context
Manually setting the name converter also on the symfony side (
framework.yaml) fixes the issue, so it seems that decoding the input JSON is happening via the default Symfony serializer, whose name converter is not automatically configured any more.