jsonapi-rb / jsonapi-rails

Rails gem for fast jsonapi-compliant APIs.
http://jsonapi-rb.org
MIT License
319 stars 63 forks source link

Raise on unsupported include fields #83

Open AGarrow opened 6 years ago

AGarrow commented 6 years ago

according to the json api spec, endpoints must respond with a 400 if unsupported includes fields are requested. I can handle undefined activerecord associations on my end, but i'd like it if jsonapi also raised something if there are included fields that arent defined in my serializers.

Thanks in advance for your time!