Skip to content

registerValidationChecks

registerValidationChecks(services): void

Defined in: libs/language/src/typeqlite-validator.ts:111

Validation for what the grammar accepts but the runtime does not implement.

This is the middle layer, and it is the one with teeth, because these constructs parse. A schema using @card is accepted, the generator ignores it, and without this layer the author would be left believing a constraint exists that does not. Unsupported TypeQLite fails loudly at three layers and never silently succeeds: unknown syntax is a parse error; syntax deliberately not implemented is reported here, naming the construct; anything reaching the interpreter unhandled throws.

An annotation leaves the not-enforced list only when the runtime genuinely implements it, with a test proving so.

TypeQLiteServices

void

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.