AshCommanded.Commanded.Verifiers.ValidateEventHandlerActions (AshCommanded v0.1.0)

View Source

Verifies that event handlers reference valid actions when using atom-based actions.

This ensures that when an event handler uses an action name (atom) rather than a function, the action exists as a valid action in the resource.

Summary

Functions

Verifies that all action names referenced by event handlers exist or are common actions.

Functions

verify(dsl_state)

Verifies that all action names referenced by event handlers exist or are common actions.

Returns

  • :ok - If all action references are valid or handlers use function definitions
  • {:error, error} - If any event handler references a potentially invalid action