Skip to content

Interface: ViolatedConstraintDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ViolatedConstraintDto

Defined in: src/types/synthetic.ts:145

The declared feature constraint a negative example violates.

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.

optional constraintMessage?: string

Defined in: src/types/synthetic.ts:153

What a refused writer is told, when the constraint’s author gave a message.


optional constraintName?: string

Defined in: src/types/synthetic.ts:151

The constraint’s name, when its author gave one.


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.