Describe the bug
When you request a "include" that is not provided in the list of "includes" in the Resource description or request an "include" that does not exist as a relationship on the resource the framework returns error 500, spec for json api says to return 400.
To Reproduce
Request using URL: https://localhost:443/api/myresource?include=invalid
Expected behavior
Expects the API to return 400
** Runtime
Elixir version
Erlang version
OS
Ash version
any related extension versions
Additional context
Add any other context about the problem here.
Describe the bug When you request a "include" that is not provided in the list of "includes" in the Resource description or request an "include" that does not exist as a relationship on the resource the framework returns error 500, spec for json api says to return 400.
To Reproduce Request using URL:
https://localhost:443/api/myresource?include=invalid
Expected behavior Expects the API to return 400
** Runtime
Additional context Add any other context about the problem here.