mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: propagate job error codes (#6507)
* feat: propagate job error_code * fix * Fix * Fix * Fix * add errors to typesGenerated * Address PR comments * Fix
This commit is contained in:
Generated
+16
@@ -6114,6 +6114,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.JobErrorCode": {
|
||||
"type": "string",
|
||||
"enum": ["MISSING_TEMPLATE_PARAMETER", "REQUIRED_TEMPLATE_VARIABLES"],
|
||||
"x-enum-varnames": [
|
||||
"MissingTemplateParameter",
|
||||
"RequiredTemplateVariables"
|
||||
]
|
||||
},
|
||||
"codersdk.License": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6595,6 +6603,14 @@
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"error_code": {
|
||||
"enum": ["MISSING_TEMPLATE_PARAMETER", "REQUIRED_TEMPLATE_VARIABLES"],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.JobErrorCode"
|
||||
}
|
||||
]
|
||||
},
|
||||
"file_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
|
||||
Reference in New Issue
Block a user