PtcRunner.Kernel.SchemaViolationDiagnostic (PtcRunner v0.14.0)

Copy Markdown View Source

Closed messages for hand-authored document schema violations.

Messages name only the document role and a bounded rule projected by PtcRunner.Kernel.SchemaViolation. Rejected values, caller-authored keys, installation aliases, and filesystem names never cross this boundary.

Summary

Functions

Renders a fixed document-role/rule message.

Functions

message(role, rule)

@spec message(atom(), PtcRunner.Kernel.SchemaViolation.rule()) ::
  {:ok, binary()} | :error

Renders a fixed document-role/rule message.