Ticket 16149 - Fix the slurm rest api database openapi specification
Summary: Fix the slurm rest api database openapi specification
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: Other (show other tickets)
Version: 23.11.x
Hardware: Linux Linux
: C - Contributions
Assignee: Nate Rini
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2023-02-28 05:53 MST by Ziyad Mohamed
Modified: 2023-03-15 17:29 MDT (History)
0 users

See Also:
Site: -Other-
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita 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) (7.78 KB, patch)
2023-02-28 08:57 MST, Nate Rini
Details | Diff

Note You need to log in before you can comment on or make changes to this ticket.
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)