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
Contributor

Description

operationId must be unique in the document: /osd/modify carried osdDelete and /data/fix carried dataDelete, renamed to osdModify and dataFix — spec-only, no behaviour change.

Contributor Name

Stepan Rabotkin

CLA

### Description `operationId` must be unique in the document: `/osd/modify` carried `osdDelete` and `/data/fix` carried `dataDelete`, renamed to `osdModify` and `dataFix` — spec-only, no behaviour change. ### Contributor Name Stepan Rabotkin ### CLA - [x] I accept Vitastor CLA agreement: https://git.yourcmc.ru/vitalif/vitastor/src/branch/master/CLA-en.md
epicstyt added 1 commit 2026-09-01 16:35:12 +03:00
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>
vitalif approved these changes 2026-09-02 19:39:21 +03:00
vitalif merged commit 145942fc3c into master 2026-09-02 19:39:31 +03:00
vitalif deleted branch fix-openapi-for-ogen 2026-09-02 19:39:31 +03:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vitalif/vitastor#82
No description provided.