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 3bc6cd4

Browse files
Merge pull request #1019 from tiodot/feature/openApi-support-empty-tags
Set openApi scheme tags default value as 'other'
2 parents 9ad82c5 + 2b9d4e8 commit 3bc6cd4

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 によって変換されたページ (->オリジナル) /