Skip to content

ErrorSerializer not transforming keys #2448

Open
@leoncruz

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions