ConstraintAtomModule

PackageReified.Constraint
Projects message keys and default English phrases from expectation values.

Summary

NameSignatureSynopsis
keyConstraintAtom.key atomThe stable message key for an atom, derived mechanically from its case.
argumentsConstraintAtom.arguments atomThe expectation operands an atom carries, named for message interpolation.
renderConstraintAtom.render atomThe default English phrase describing what an atom expected.

key

ConstraintAtom.key atom
Member
The stable message key for an atom, derived mechanically from its case.

Parameters

NameTypeDescription
atomConstraintAtom

Returns

string

Verification Examples

ConstraintAtom.key (RelationAtom (Compared (AtLeast, ConstraintValue.Integer 3L)))
 // "constraint.relation.atLeast"

arguments

ConstraintAtom.arguments atom
Member
The expectation operands an atom carries, named for message interpolation.

Parameters

NameTypeDescription
atomConstraintAtom

Returns

Map<string, ConstraintValue>

render

ConstraintAtom.render atom
Member
The default English phrase describing what an atom expected.

Parameters

NameTypeDescription
atomConstraintAtom

Returns

string