You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the self.resource_errors method, it is possible to retrieve the default serializer with : ActiveModel::Serializer.serializer_for error_serializer.object
But I cannot manage to get the json Key for an attribute ou of the serializer. How can I do that ?
The text was updated successfully, but these errors were encountered:
I want to fix this issue : #2250
To do so I need to ask to the serializer if an attribute has a key in the default serializer. From what I understand It should be done in https://github.com/rails-api/active_model_serializers/blob/0-10-stable/lib/active_model_serializers/adapter/json_api/error.rb
In the
self.resource_errors
method, it is possible to retrieve the default serializer with :ActiveModel::Serializer.serializer_for error_serializer.object
But I cannot manage to get the json Key for an attribute ou of the serializer. How can I do that ?
The text was updated successfully, but these errors were encountered: