ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
56 stars 40 forks source link

Raise error when json_api route depends on non-existent relationship #66

Closed gerbal closed 1 year ago

gerbal commented 1 year ago

This PR adds an helpful error message if a JSON API Route references a non-existent relationship.

Prior to this change, errors in case of a non-existent relationship have no context for identifying the root cause of the error or the incorrectly specified relationship

Contributor checklist

zachdaniel commented 1 year ago

Looks great! WIll merge once build passes.