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

fix(OpenApi): Don't cause a compilation failure when open_api_spex is not present. #78

Closed jimsynz closed 1 year ago

jimsynz commented 1 year ago

The open_api_spex package is set as an optional dependency, so when it's not present we need to not compile the OpenApi controller. I considered having it return an error, but I think it's better to not include it in the routes at all if the package is missing and the server will return a 404.