ash-project / spark

Tooling for building DSLs in Elixir
MIT License
105 stars 23 forks source link

Check for `spark_function_behaviour` types needs to be recursive. #7

Closed jimsynz closed 1 year ago

jimsynz commented 1 year ago

When specifying a schema such as:

{:or, [
  {:spark_function_behaviour, AshAuthentication.Secret, {AshAuthentication.SecretFunction, 2}}, 
  :string
]}

A compiler error is produced.

This is because the code for spark_function_behaviour is an exact match, and not a recursive one.