TypeQLiteValidationCode
constTypeQLiteValidationCode:object
Defined in: libs/language/src/typeqlite-validation-codes.ts:17
Diagnostic codes for the validation rules, defined once.
They live here, in the language package, because that is the layer the runtime depends on rather
than the reverse. diagnostics.ts composes its DiagnosticCode from these for the rules both
layers speak about.
Type Declaration
Section titled “Type Declaration”annotationArguments
Section titled “annotationArguments”
readonlyannotationArguments:"typedblite.annotation-arguments"='typedblite.annotation-arguments'
A repeated @values argument, or an argument that does not fit the value type.
annotationNotAdmitted
Section titled “annotationNotAdmitted”
readonlyannotationNotAdmitted:"typedblite.annotation-not-admitted"='typedblite.annotation-not-admitted'
An annotation on a subject that does not admit it — ADMITTED in typeqlite-annotations.ts. It replaced key-on-role.
annotationNotEnforced
Section titled “annotationNotEnforced”
readonlyannotationNotEnforced:"typedblite.annotation-not-enforced"='typedblite.annotation-not-enforced'
One code for every annotation the grammar parses and the runtime does not enforce — @card,
@unique, @independent, … It replaced card-not-implemented and unique-not-implemented
when the rule changed from refusing to reporting (see TypeQLiteValidator).
annotationRepeated
Section titled “annotationRepeated”
readonlyannotationRepeated:"typedblite.annotation-repeated"='typedblite.annotation-repeated'
Two annotations of one category on one subject — “Try redefine instead”.
anonymousVariable
Section titled “anonymousVariable”
readonlyanonymousVariable:"typedblite.anonymous-variable"='typedblite.anonymous-variable'
select $_, sort $_, reduce … groupby $_ — a stage that names a variable needs a named one.
duplicateLabel
Section titled “duplicateLabel”
readonlyduplicateLabel:"typedblite.duplicate-label"='typedblite.duplicate-label'
duplicateOwns
Section titled “duplicateOwns”
readonlyduplicateOwns:"typedblite.duplicate-owns"='typedblite.duplicate-owns'
repeatedClause
Section titled “repeatedClause”
readonlyrepeatedClause:"typedblite.repeated-clause"='typedblite.repeated-clause'
entity a sub b, sub c — a second sub or value clause on one type.
reservedKeyword
Section titled “reservedKeyword”
readonlyreservedKeyword:"typedblite.reserved-keyword"='typedblite.reserved-keyword'
unboundValue
Section titled “unboundValue”
readonlyunboundValue:"typedblite.unbound-value"='typedblite.unbound-value'
$v > $h with $v bound by nothing — a value read before anything assigns it.
unknownLabel
Section titled “unknownLabel”
readonlyunknownLabel:"typedblite.unknown-label"='typedblite.unknown-label'
A label no file in the workspace defines (ADR-008 D6). Editor-only: reported by
TypeQLiteDocumentValidator, never by a registered check, so the runtime never sees it (ADR-008 D2).
unknownValueType
Section titled “unknownValueType”
readonlyunknownValueType:"typedblite.unknown-value-type"='typedblite.unknown-value-type'
value rgba — a name that is not a value type.
unprojectableVariable
Section titled “unprojectableVariable”
readonlyunprojectableVariable:"typedblite.unprojectable-variable"='typedblite.unprojectable-variable'
valueTypeOnThing
Section titled “valueTypeOnThing”
readonlyvalueTypeOnThing:"typedblite.value-type-on-thing"='typedblite.value-type-on-thing'
entity cream value double — a thing type has no value.
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.