Get diagnostics for a build
/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.
Path Parameters
Query Parameters
Returns
has_more: boolean
next_cursor: optional string
Get diagnostics for a build
curl https://api.stainless.com/v0/builds/$BUILD_ID/diagnostics \
-H "Authorization: Bearer $STAINLESS_API_KEY"
{
"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"
}