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

View Source

Verifies that event handlers only reference valid events defined in the resource.

This ensures that each event handler is tied to valid events that were defined in the resource's events section, preventing references to non-existent events.

Summary

Functions

Verifies that all events referenced by event handlers exist in the resource.

Functions

verify(dsl_state)

Verifies that all events referenced by event handlers exist in the resource.

Returns

  • :ok - If all events referenced by event handlers exist
  • {:error, error} - If any event handler references a non-existent event