Skip to content

Type Alias: ViolationActionDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / 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.

  • update — the engine adjusts the target.
  • fail — the write is refused (409, a ConstraintViolationError).
  • 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.

const action: ViolationActionDto = 'fail';