Get diagnostics for a build
builds.diagnostics.list(strbuild_id, DiagnosticListParams**kwargs) -> SyncPage[BuildDiagnostic]
/v0/builds/{buildId}/diagnostics
Get the list of diagnostics for a given build.
If no language targets are specified, diagnostics for all languages are returned.
Parameters
Returns
Get diagnostics for a build
import os
from stainless_v0 import Stainless
client = Stainless(
api_key=os.environ.get("STAINLESS_API_KEY"), # This is the default and can be omitted
)
page = client.builds.diagnostics.list(
build_id="buildId",
)
page = page.data[0]
print(page.code)
{
"data": [
{
"code": "code",
"ignored": true,
"level": "fatal",
"message": "message",
"more": {
"markdown": "markdown",
"type": "markdown"
},
"config_ref": "config_ref",
"oas_ref": "oas_ref"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}
Returns Examples
{
"data": [
{
"code": "code",
"ignored": true,
"level": "fatal",
"message": "message",
"more": {
"markdown": "markdown",
"type": "markdown"
},
"config_ref": "config_ref",
"oas_ref": "oas_ref"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}