Skip to content

Commit 1a6b520

Browse files
committed
[KYUUBI #7219] Fix endless swagger openapi.json security items
### Why are the changes needed? Fix endless security items increasing. Do not use addSecurityItem api. <img width="643" height="368" alt="image" src="https://github.com/user-attachments/assets/97a4088b-40f8-4cd5-89f0-0e18a91c8b9c" /> ### How was this patch tested? Code review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #7219 from turboFei/fix_api_spec. Closes #7219 c10a102 [Wang, Fei] Fix security Authored-by: Wang, Fei <[email protected]> Signed-off-by: Wang, Fei <[email protected]> (cherry picked from commit 44ce1a5) Signed-off-by: Wang, Fei <[email protected]>
1 parent 6de6622 commit 1a6b520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/KyuubiOpenApiResource.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ class KyuubiOpenApiResource extends BaseOpenApiResource with ApiRequestContext {
112112
.`type`(SecurityScheme.Type.HTTP)
113113
.scheme("Bearer")
114114
.bearerFormat("JWT")))
115-
.addSecurityItem(new SecurityRequirement()
115+
.security(List(new SecurityRequirement()
116116
.addList("BasicAuth")
117-
.addList("BearerAuth"))
117+
.addList("BearerAuth")).asJava)
118118
}
119119
}
120120

0 commit comments

Comments
 (0)