Ticket 16149

Summary: Fix the slurm rest api database openapi specification
Product: Slurm Reporter: Ziyad Mohamed <harrymatt26409>
Component: OtherAssignee: Nate Rini <nate>
Status: RESOLVED FIXED QA Contact:
Severity: C - Contributions    
Priority: ---    
Version: 23.11.x   
Hardware: Linux   
OS: Linux   
Site: -Other- Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: Ubuntu
Machine Name: CLE Version:
Version Fixed: 23.02.2,23.11.0rc0 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---
Attachments: patch for 2205 (v1)

Description Ziyad Mohamed 2023-02-28 05:53:37 MST
Hi, 
I think the [current](https://github.com/SchedMD/slurm/blob/d7a74a3a27a88232923fa689ae675aa28e7fc0f5/src/plugins/openapi/dbv0.0.38/openapi.json) openapi specification for slurm database is incorrect:

`dbv0.0.38_tres_update` erroneously was added to `/accounts/` path, instead of schema (it already exists there  so this would count as a duplicate)

references to ` #/components/schemas/v0.0.38_meta` exist despite there not being any schema for it.Renaming all references of  #/components/schemas/v0.0.38_meta`  to `#/components/schemas/dbv0.0.38_meta` should fix the issue.
Comment 1 Nate Rini 2023-02-28 08:57:03 MST
Created attachment 29085 [details]
patch for 2205 (v1)