Type Alias: ViolationActionDto
@kortexya/reasoninglayer / ViolationActionDto
Type Alias: ViolationActionDto
Section titled “Type Alias: ViolationActionDto”ViolationActionDto =
"update"|"fail"|"warn"|"residuate"
Defined in: src/types/sorts.ts:438
What a write that breaks a bound constraint gets, as OSFQL
CHECK ON … VIOLATION <word> spells it.
Remarks
Section titled “Remarks”update— the engine adjusts the target.fail— the write is refused (409, aConstraintViolationError).warn— the write is admitted with a warning.residuate— the check is suspended until more is known.
A closed set since engine 430dc1ede4 (reasoninglayer#1247): POST /api/v1/sorts refuses any other value with a plain-text 422.
Example
Section titled “Example”const action: ViolationActionDto = 'fail';