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

enhancement: Add `included` key with resource references in OpenAPI schema #88

Closed skanderm closed 1 year ago

skanderm commented 1 year ago

The included key that side loads associated records should now include public relationships added in the json_api includes key.

Also adds a fix for the relationships key where the schema was expecting a resource but was getting a Ash.Resource.Relationships.* struct instead.

zachdaniel commented 1 year ago

🚀 Thank you for your contribution! 🚀