active_model_serializers-jsonapi_embedded_records_deserializer
active_model_serializers-jsonapi_embedded_records_deserializer copied to clipboard
Optionally embed
Is it possible to optionally embed only if the resource contains an attributes
key, otherwise fallback to the standard approach?
I haven't implemented this, since you might not have an attributes hash but a relationships hash and it would still be a valid embedded record in my opinion. Currently I don't have time to implement this but if you need this behaviour, feel free to send a pull request, I'd be happy to merge it.