From 726c979de9c6b8db761f5b129d1c0edce115a725 Mon Sep 17 00:00:00 2001 From: Anry7794 Date: Thu, 18 Jan 2024 10:18:50 +0100 Subject: [PATCH] Update services.neon Using nameConvertor to snake case is leading to missmatch with open api. If you have good annotations f.e. property $fullName in response DTO openapi will generate { fullName: "string" } but reality with nameConvertor is { full_name: "John Doe" }. So there should be fix on side of openapi or removing nameConvertor --- config/app/services.neon | 1 - 1 file changed, 1 deletion(-) diff --git a/config/app/services.neon b/config/app/services.neon index 9682e90..41546d8 100644 --- a/config/app/services.neon +++ b/config/app/services.neon @@ -18,7 +18,6 @@ services: symfony.serializer.objectNormalizer: factory: Symfony\Component\Serializer\Normalizer\ObjectNormalizer( classMetadataFactory: @symfony.serializer.classMetadataFactory, - nameConverter: Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter(), propertyAccessor: null, propertyTypeExtractor: Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor() )