ChartnautDocs

The Diagnostic object

A Diagnostic is one finding from checking a script's code. Validate a script returns them, and they come beside every 422 script_invalid from Create a script, Save a script version and Create a run.

Fields

Field

Type

Description

severity

string

error or warning. Errors stop a save or a run; warnings do not

code

string

The rule or stage, such as lint, derive or dependency.browser_only. Left out when there is none

message

string

What is wrong

path

string

The file. Left out when not known

line

integer

The line. Left out when not known

setting

string

The setting the finding is about. Left out when there is none

Lint and error codes explains each rule.