DiagnosticEntry
Defined in: packages/core/src/types/export.ts:696
A single diagnostic entry produced by the "diagnostics" format.
Properties
code
code:
string
Defined in: packages/core/src/types/export.ts:702
A machine-readable code identifying the type of diagnostic.
id
id:
string
Defined in: packages/core/src/types/export.ts:698
The id of the rule or group this diagnostic pertains to.
message
message:
string
Defined in: packages/core/src/types/export.ts:704
A human-readable description of the diagnostic.
path
path:
number[]
Defined in: packages/core/src/types/export.ts:700
The path to the rule or group within the query tree.
severity?
optionalseverity?:"error"|"warning"
Defined in: packages/core/src/types/export.ts:732
Severity. Absent means "error" (legacy). "warning" entries never affect validity.
source
source:
"muted"|"placeholder"|"query-validator"|"field-validator"|"type-check"|"field-check"|"structure-check"|"format-check"
Defined in: packages/core/src/types/export.ts:720
Which check produced this diagnostic.
"placeholder"— a placeholder field, operator, or value"muted"— a muted rule or group"query-validator"— the query-level validator"field-validator"— a field-level validator"type-check"— value/type mismatch based on fieldinputType"type-check"also coversbetween/invalue arity,valuesmembership, and boolean values for checkbox/switch editors"field-check"— field existence and operator validity against thefieldsconfig"structure-check"—rulesarray shape (e.g. independent combinator alternation)"format-check"— operator/value source/match mode unsupported by thediagnosticsTargetFormat(alwaysseverity: "warning")
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.