One typed component in a canonical Definition envelope.
criticality tells older runtimes whether unknown semantics must fail
closed. Security- and execution-relevant components use
:must_understand; descriptive metadata never grants authority.
Summary
Functions
Restores a component from its portable envelope representation.
Builds and validates a canonical Definition component.
Builds a component or raises with its stable validation reason.
Returns the portable envelope representation of a component.
Types
@type criticality() :: :must_understand | :advisory | :descriptive
@type t() :: %Spectre.Definition.Component{ component_type: atom() | String.t(), criticality: criticality(), payload: term(), schema_ref: String.t() }
Functions
Restores a component from its portable envelope representation.
Builds and validates a canonical Definition component.
Builds a component or raises with its stable validation reason.
Returns the portable envelope representation of a component.