Skip to content
FeedbackDashboard

Diagnostics

Get diagnostics for a build
client.builds.diagnostics.list(stringbuildID, DiagnosticListParams { cursor, limit, severity, targets } query?, RequestOptionsoptions?): Page<BuildDiagnostic { code, ignored, level, 4 more } >
get/v0/builds/{buildId}/diagnostics
ModelsExpand Collapse
BuildDiagnostic { code, ignored, level, 4 more }
code: string

The kind of diagnostic.

ignored: boolean

Whether the diagnostic is ignored in the Stainless config.

level: "fatal" | "error" | "warning" | "note"

The severity of the diagnostic.

Accepts one of the following:
"fatal"
"error"
"warning"
"note"
message: string

A description of the diagnostic.

more: BuildDiagnosticMore | null
Accepts one of the following:
Markdown { markdown, type }
markdown: string
type: "markdown"
Raw { raw, type }
raw: string
type: "raw"
config_ref?: string

A JSON pointer to a relevant field in the Stainless config.

oas_ref?: string

A JSON pointer to a relevant field in the OpenAPI spec.

BuildDiagnosticMore = Markdown { markdown, type } | Raw { raw, type }
Accepts one of the following:
Markdown { markdown, type }
markdown: string
type: "markdown"
Raw { raw, type }
raw: string
type: "raw"