Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorSerializer not transforming keys #2448

Open
leoncruz opened this issue Jun 12, 2023 · 0 comments
Open

ErrorSerializer not transforming keys #2448

leoncruz opened this issue Jun 12, 2023 · 0 comments

Comments

@leoncruz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant