From 616ce5a93c1d75e110684798c9ae3e3843bba7a3 Mon Sep 17 00:00:00 2001 From: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:18:54 +0300 Subject: [PATCH] Fix/oas tags (#2065) * bug fix * update snapshot --- src/lib/routes/admin-api/public-signup.ts | 8 ++++---- .../api/openapi/__snapshots__/openapi.e2e.test.ts.snap | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/routes/admin-api/public-signup.ts b/src/lib/routes/admin-api/public-signup.ts index 469b6e21b6..7c767e523a 100644 --- a/src/lib/routes/admin-api/public-signup.ts +++ b/src/lib/routes/admin-api/public-signup.ts @@ -87,7 +87,7 @@ export class PublicSignupController extends Controller { middleware: [ openApiService.validPath({ tags: ['Public signup tokens'], - operationId: 'createApiToken', + operationId: 'createPublicSignupToken', requestBody: createRequestSchema( 'publicSignupTokenCreateSchema', ), @@ -158,7 +158,7 @@ export class PublicSignupController extends Controller { permission: ADMIN, middleware: [ openApiService.validPath({ - tags: ['API tokens'], + tags: ['Public signup tokens'], operationId: 'deletePublicSignupToken', responses: { 200: emptyResponse, @@ -175,8 +175,8 @@ export class PublicSignupController extends Controller { permission: NONE, middleware: [ openApiService.validPath({ - tags: ['API tokens'], - operationId: 'validateSignupToken', + tags: ['Public signup tokens'], + operationId: 'validatePublicSignupToken', responses: { 200: emptyResponse, 401: emptyResponse, diff --git a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap index ddcff34056..b55a40aed2 100644 --- a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap +++ b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap @@ -4453,7 +4453,7 @@ If the provided project does not exist, the list of events will be empty.", ], }, "post": { - "operationId": "createApiToken", + "operationId": "createPublicSignupToken", "requestBody": { "content": { "application/json": { @@ -4501,7 +4501,7 @@ If the provided project does not exist, the list of events will be empty.", }, }, "tags": [ - "API tokens", + "Public signup tokens", ], }, "get": { @@ -4608,7 +4608,7 @@ If the provided project does not exist, the list of events will be empty.", }, "/api/admin/invite-link/tokens/{token}/validate": { "post": { - "operationId": "validateSignupToken", + "operationId": "validatePublicSignupToken", "parameters": [ { "in": "path", @@ -4628,7 +4628,7 @@ If the provided project does not exist, the list of events will be empty.", }, }, "tags": [ - "API tokens", + "Public signup tokens", ], }, },