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

Allow to include/exclude null values from the JSON output #100

Closed adonig closed 11 months ago

adonig commented 11 months ago

It's now possible to set include_nil_values? for AshJsonApi.API and AshJsonApi.Resource. If you don't set it for the API the default is true to make sure it does not break existing APIs. If you don't set it for a resource, it will use the value of its API.

Contributor checklist

zachdaniel commented 11 months ago

@adonig got a few CI related chores to take care of, but once that is done it should be good to go :)

zachdaniel commented 11 months ago

🚀 Thank you for your contribution! 🚀