Ash FrameworkAF
Ash Framework3y ago
4 replies
rellen

pub_sub compilation issue

After updating to ash main, commit id: 2813b3c9b2f45d1aec6aff2a64920404a42ac839
I'm getting the following error on compilation related to pub_sub

Given this line in a pub_sub:
publish :create, ["changed", :parent_id, [:id, nil]]
Getting this compilation error:
** (Spark.Error.DslError) [MySuperSecretProject.SomeResource]
 pub_sub -> publish:
  invalid value for :topic option: invalid list in :topic option: expected list element at position 2 to match at least one given type, but didn't match any. Here are the reasons why it didn't match each of the allowed types:

  * invalid value for list element at position 2: expected atom, got: [:id, nil]
  * invalid value for list element at position 2: expected string, got: [:id, nil]
Was this page helpful?