ash-project / ash

A declarative, extensible framework for building Elixir applications.
https://www.ash-hq.org
MIT License
1.63k stars 220 forks source link

Fix warning when actions.read.argument constraint is violated #1607

Closed ashley307 closed 2 days ago

ashley307 commented 4 days ago

Contributor checklist

Issue When an Ash resource read action has an argument with a 'constraints' option and a defined constraint is violated by the provided argument value, then the following Warning is printed:

warning: the following fields are unknown when raising Ash.Error.Query.InvalidArgument: [ ...

Solution Ensure, that Ash.Query does not try to add unknown fields when creating Ash.Error.Query.InvalidArgument

zachdaniel commented 2 days ago

🚀 Thank you for your contribution! 🚀