Skip to content

Commit

Permalink
Merge pull request #1019 from tiodot/feature/openApi-support-empty-tags
Browse files Browse the repository at this point in the history
Set openApi scheme tags default value as 'other'
  • Loading branch information
FalkWolsky committed Jul 8, 2024
2 parents 9ad82c5 + 2b9d4e8 commit 3bc6cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/node-service/src/plugins/openApi/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export async function parseOpenApi(
return;
}

const { tags } = operation;
const { tags = ["other"] } = operation;
if (tags) {
appendCategories(
categories,
Expand All @@ -288,7 +288,7 @@ export async function parseOpenApi(
);
}
const action: ActionConfig = {
category: operation.tags || "",
category: tags || "",
actionName: operationId,
label: actionLabel(httpMethod, path, operation),
description: actionDescription(httpMethod, path, operation),
Expand Down

0 comments on commit 3bc6cd4

Please sign in to comment.