fix(openapi): give /osd/modify and /data/fix unique operationIds #82

Merged
vitalif merged 1 commits from epicstyt/vitastor:fix-openapi-for-ogen into master 2026-09-02 19:39:31 +03:00

1 Commits

Author SHA1 Message Date
28da1d0e10 fix(openapi): give /osd/modify and /data/fix unique operationIds
Duplicate operationIds are forbidden outright by the OpenAPI
specification: the field must be unique among all operations in the
document. Two endpoints violated it by carrying the id of their
neighbouring delete operation, most likely copy-paste leftovers:
/osd/modify was osdDelete and /data/fix was dataDelete.

Rename them to osdModify and dataFix. Client generators derive method
names from operationId, so besides restoring validity this stops the
duplicates from silently colliding or being renamed by the generator.

Signed-off-by: Stepan Rabotkin <epicstyt@gmail.com>
2026-09-01 16:31:08 +03:00