Skip to content
FeedbackDashboard

Diagnostics

Get diagnostics for a build
builds.diagnostics.list(strbuild_id, DiagnosticListParams**kwargs) -> SyncPage[BuildDiagnostic]
get/v0/builds/{buildId}/diagnostics
ModelsExpand Collapse
class BuildDiagnostic:
code: str

The kind of diagnostic.

ignored: bool

Whether the diagnostic is ignored in the Stainless config.

level: Literal["fatal", "error", "warning", "note"]

The severity of the diagnostic.

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

A description of the diagnostic.

more: Optional[BuildDiagnosticMore]
Accepts one of the following:
class Markdown:
markdown: str
type: Literal["markdown"]
class Raw:
raw: str
type: Literal["raw"]
config_ref: Optional[str]

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

oas_ref: Optional[str]

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

BuildDiagnosticMore = BuildDiagnosticMore
Accepts one of the following:
class Markdown:
markdown: str
type: Literal["markdown"]
class Raw:
raw: str
type: Literal["raw"]