Contributed to open source
https://github.com/ash-project/ash_json_api/pull/41