We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug There are no compiler errors to misconfiguring the constraints fields keyword lists.
To Reproduce Create a new type with an incorrect type keyword list.
defmodule MyApp.FooType do alias MyApp.BarResource use Ash.Type.NewType, subtype_of: :map, constraints: [ fields: [ bars: [type: :struct, instance_of: BarResource] ] ] end
The correct keyword list would be as such:
defmodule MyApp.FooType do alias MyApp.BarResource use Ash.Type.NewType, subtype_of: :map, constraints: [ fields: [ bars: [type: :struct, constraints: [ instance_of: BarResource]] ] ] end
Expected behavior An error at compile time for unknown keys or incorrect keys.
Runtime
Additional context
Link to discord thread: https://discord.com/channels/711271361523351632/1254774851428814930/1352834543408775228
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
There are no compiler errors to misconfiguring the constraints fields keyword lists.
To Reproduce
Create a new type with an incorrect type keyword list.
The correct keyword list would be as such:
Expected behavior
An error at compile time for unknown keys or incorrect keys.
Runtime
Additional context
Link to discord thread: https://discord.com/channels/711271361523351632/1254774851428814930/1352834543408775228
The text was updated successfully, but these errors were encountered: