Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set openApi scheme tags default value as 'other' #1019

Merged
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
Loading