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]
** (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]
4 Replies
rellen
rellenOP2y ago
this was fine on commit 32f8224fbaeff5b48f368119d30bc52ae0b6cf0a
Vonagam
Vonagam2y ago
My bad, the option type checking was changed to use :wrap_list instead of a custom function. I've missed that the recursion was supported. Will revert the change.
ZachDaniel
ZachDaniel2y ago
Merged, will release today
rellen
rellenOP2y ago
thanks very much!

Did you find this page helpful?