Validates assembled protocol packets before they are forwarded to downstream routers.
Summary
Functions
Ensures a packet has well-formed messages, sections, and metadata.
Same as validate/1 but raises on failure.
Functions
@spec validate(CommBus.Protocol.Packet.t()) :: :ok | {:error, term()}
Ensures a packet has well-formed messages, sections, and metadata.
@spec validate!(CommBus.Protocol.Packet.t()) :: CommBus.Protocol.Packet.t()
Same as validate/1 but raises on failure.