Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c7baf17

Browse files
authored
Set openApi tags default value as 'other'
1 parent fc9350d commit c7baf17

File tree

1 file changed

+2
-2
lines changed
  • server/node-service/src/plugins/openApi

1 file changed

+2
-2
lines changed

‎server/node-service/src/plugins/openApi/parse.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export async function parseOpenApi(
264264
return;
265265
}
266266

267-
const { tags } = operation;
267+
const { tags =["other"]} = operation;
268268
if (tags) {
269269
appendCategories(
270270
categories,
@@ -288,7 +288,7 @@ export async function parseOpenApi(
288288
);
289289
}
290290
const action: ActionConfig = {
291-
category: operation.tags || "",
291+
category: tags || "",
292292
actionName: operationId,
293293
label: actionLabel(httpMethod, path, operation),
294294
description: actionDescription(httpMethod, path, operation),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /