From 817239598ef5fd7f78ce4fe8697b87b82cc57145 Mon Sep 17 00:00:00 2001 From: Nathan Rini <nate@schedmd.com> Date: Wed, 23 Feb 2022 17:07:11 -0700 Subject: [PATCH] openapi/dbv0.0.38 - Sync fields for errors to source in openapi.json Bug 12897 --- NEWS | 1 + doc/html/openapi_release_notes/slurm-22.05.0.html | 3 +++ src/plugins/openapi/dbv0.0.38/openapi.json | 12 ++++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index f5d6397dc3c..d2a67e7c9b5 100644 --- a/NEWS +++ b/NEWS @@ -124,6 +124,7 @@ documents those changes that are of interest to users and administrators. -- openapi/dbv0.0.38 - Correct tres field in qos list in openapi.json. -- openapi/dbv0.0.38 - Correct het job details types in jobs in openapi.json -- openapi/dbv0.0.38 - Correct task type for job steps in openapi.json. + -- openapi/dbv0.0.38 - Sync fields for errors to source in openapi.json. * Changes in Slurm 21.08.7 ========================== diff --git a/doc/html/openapi_release_notes/slurm-22.05.0.html b/doc/html/openapi_release_notes/slurm-22.05.0.html index 35232b06d7a..5a5d8977133 100644 --- a/doc/html/openapi_release_notes/slurm-22.05.0.html +++ b/doc/html/openapi_release_notes/slurm-22.05.0.html @@ -191,6 +191,9 @@ <td class="tdchange" colspan=2> <ul> <li>.components.schemas."dbv0.0.38_response_association_delete".properties.removed_associations</li> + <li>.components.schemas."dbv0.0.38_error".properties.error_number</li> + <li>.components.schemas."dbv0.0.38_error".properties.source</li> + <li>.components.schemas."dbv0.0.38_error".properties.description</li> </ul> </td> </tr> diff --git a/src/plugins/openapi/dbv0.0.38/openapi.json b/src/plugins/openapi/dbv0.0.38/openapi.json index ae5a0b53818..5df247cb070 100644 --- a/src/plugins/openapi/dbv0.0.38/openapi.json +++ b/src/plugins/openapi/dbv0.0.38/openapi.json @@ -3628,13 +3628,21 @@ }, "dbv0.0.38_error": { "properties": { - "errno": { - "description": "Error number", + "error_number": { + "description": "Slurm internal error number", "type": "integer" }, "error": { "description": "Error message", "type": "string" + }, + "source": { + "description": "Where error occured in the source", + "type": "string" + }, + "description": { + "description": "Explaination of cause of error", + "type": "string" } }, "type": "object" -- GitLab