Manually applied https://github.com/json-api/json-api/pull/62.