Interface: ViolatedConstraintDto
@kortexya/reasoninglayer / ViolatedConstraintDto
Interface: ViolatedConstraintDto
Section titled “Interface: ViolatedConstraintDto”Defined in: src/types/synthetic.ts:145
The declared feature constraint a negative example violates.
Remarks
Section titled “Remarks”Carried by a negative of strategy ConstraintViolation. constraintName
and constraintMessage are the same words a refused write carries on a
NamedConstraintViolationError, so a form can
be tested against the message its users will actually see.
Properties
Section titled “Properties”constraintMessage?
Section titled “constraintMessage?”
optionalconstraintMessage?:string
Defined in: src/types/synthetic.ts:153
What a refused writer is told, when the constraint’s author gave a message.
constraintName?
Section titled “constraintName?”
optionalconstraintName?:string
Defined in: src/types/synthetic.ts:151
The constraint’s name, when its author gave one.
feature
Section titled “feature”feature:
string
Defined in: src/types/synthetic.ts:147
The feature whose constraint is violated.
kind:
ViolatedConstraintKind
Defined in: src/types/synthetic.ts:149
The constraint’s kind: enum, ordered_enum, range, pattern or cardinality.