diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2025-02-08 17:29:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-08 08:29:24 +0000 |
| commit | 54fc232a23742ca62232d35c8e976cbec40a61d2 (patch) | |
| tree | d23a3646e5e0eb33e4ae5823ac2b55522a992869 /packages/backend/src | |
| parent | fix(ci): oktetoの導線を削除 (#15427) (diff) | |
| download | sharkey-54fc232a23742ca62232d35c8e976cbec40a61d2.tar.gz sharkey-54fc232a23742ca62232d35c8e976cbec40a61d2.tar.bz2 sharkey-54fc232a23742ca62232d35c8e976cbec40a61d2.zip | |
fix(backend): use unique `operationId` in the OpenAPI schema (#15420)
* fix(backend): use unique `operationId` in the OpenAPI schema
* fix: read with UTF-8 encoding
Diffstat (limited to 'packages/backend/src')
| -rw-r--r-- | packages/backend/src/server/api/openapi/gen-spec.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/openapi/gen-spec.ts b/packages/backend/src/server/api/openapi/gen-spec.ts index 3b20ec1321..ea64e32ee6 100644 --- a/packages/backend/src/server/api/openapi/gen-spec.ts +++ b/packages/backend/src/server/api/openapi/gen-spec.ts @@ -210,9 +210,15 @@ export function genOpenapiSpec(config: Config, includeSelfRef = false) { spec.paths['/' + endpoint.name] = { ...(endpoint.meta.allowGet ? { - get: info, + get: { + ...info, + operationId: 'get___' + info.operationId, + }, } : {}), - post: info, + post: { + ...info, + operationId: 'post___' + info.operationId, + }, }; } |