[Serializer] TranslatableNormalizer before BackedEnumNormalizer#63040
[Serializer] TranslatableNormalizer before BackedEnumNormalizer#63040Seb33300 wants to merge 1 commit into
Conversation
dd09b26 to
079697e
Compare
|
We cannot change that now. This is a BC break as projects that have backed enums in their response could suddenly get a different response. Some projects will expect the API to use the machine-readable representation of the So this gets a -1 vote from me. You can still use a custom normalizer for your own enum if you want it to be serialized in a custom way. |
Reverting
TranslatableNormalizerto be called beforeBackedEnumNormalizer+ add the ability to setNORMALIZATION_LOCALE_KEYtofalsein order to disable translation on purpose (and fallback onBackedEnumNormalizer).