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
I have different widgets. And provided them in index action.
Each widget type, has different/custom data. For that reason, I add different serializers for each widget type, to respond with that custom data.
The issue is that I have to include that data(different for each widget) in index action.
Gem raises an error in such case:
raise JSONAPI::Serializer::InvalidIncludeError.new("'#{attribute_name}' is not a valid include.")
I need to provide a way, to not to raise that error and just omit relationship if it can't be retrieved.
Can we merge it? Or maybe you can suggest me so other solution?
I have different widgets. And provided them in index action.
Each widget type, has different/custom data. For that reason, I add different serializers for each widget type, to respond with that custom data.
The issue is that I have to
include
that data(different for each widget) in index action.Gem raises an error in such case:
I need to provide a way, to not to raise that error and just omit relationship if it can't be retrieved.
Can we merge it? Or maybe you can suggest me so other solution?
@fotinakis , @mwpastore what do you think guys?
Here is #118
The text was updated successfully, but these errors were encountered: