active_model_serializers
active_model_serializers copied to clipboard
ErrorSerializer not transforming keys
Expected behavior vs actual behavior
I'm setup de key_transform option to use camel_lower. With custom serializers, works great. Example:
checkout the createdAt and updatedAt, they are being transformed.
When use the ActiveModel::Serializer::ErrorSerializer, this behavior does not happen. Example:
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