MishkaPay.Ash.Resource.ApplyKind (Mishka Pay v0.0.1)

Copy Markdown View Source

The transformer of MishkaPay.Ash.Resource: adds the resource's kind (MishkaPay.Ash.Resource.Kinds) with Ash.Resource.Builder, before any transformer of Ash and AshOban sees the resource, and skips whatever the host defines itself.

A wrong setup is a compile error here, where the kind is applied, rather than in a verifier, whose errors Spark reports as warnings: an action the kind does not have, an inbox without all of its actions, or an inbox in a project without AshOban.

Summary

Functions

after?(_)

Callback implementation for Spark.Dsl.Transformer.after?/1.

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.