The QueryValidationResult datatype includes various settings.

Table: QueryValidationResult

isValidbooleanyes Whether query is valid. For internal testing.
diagnostics[QueryDiagnostic]yes A diagnostic message from query validation (see QueryDiagnostic Table). For internal testing.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.