Continuum.SignalContract (continuum v0.7.1)

Copy Markdown View Source

Validation helpers for workflow-declared signal contracts.

Workflows may declare signal names with built-in type validators or an MFA validator. A workflow that omits :signals remains open for compatibility; once the option is present, undeclared names are rejected.

Summary

Types

contracts()

@type contracts() :: nil | %{required(atom()) => validator()}

validator()

@type validator() ::
  :any
  | :atom
  | :binary
  | :boolean
  | :integer
  | :list
  | :map
  | :number
  | {module(), atom()}