active_model_serializers icon indicating copy to clipboard operation
active_model_serializers copied to clipboard

ErrorSerializer not transforming keys

Open leoncruz opened this issue 2 years ago • 0 comments

Expected behavior vs actual behavior

I'm setup de key_transform option to use camel_lower. With custom serializers, works great. Example:

image checkout the createdAt and updatedAt, they are being transformed.

When use the ActiveModel::Serializer::ErrorSerializer, this behavior does not happen. Example:

image

Environment

ActiveModelSerializers Version 0.10.0:

Output of ruby -e "puts RUBY_DESCRIPTION": ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]

OS Type & Version: Linux 6.3.6-arch1-1 x86_64 GNU/Linux

Integrated application and version (e.g., Rails, Grape, etc): Rails 7.0.5

leoncruz avatar Jun 12 '23 16:06 leoncruz