This is an automated email from the ASF dual-hosted git repository.

lufei pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/dev by this push:
     new f92860e8 chore: remove duplicated security requirements (#1302)
f92860e8 is described below

commit f92860e8ecd1fa33be4dc279539c78a6579ef4aa
Author: Seiya <[email protected]>
AuthorDate: Wed Apr 2 10:12:39 2025 +0900

    chore: remove duplicated security requirements (#1302)
    
    close #1300
---
 docs/docs.go                             | 12 ------------
 docs/swagger.json                        | 12 ------------
 docs/swagger.yaml                        |  4 ----
 internal/controller/report_controller.go |  2 --
 internal/controller/review_controller.go |  1 -
 internal/controller/user_controller.go   |  1 -
 6 files changed, 32 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 2fb46904..9ae127b6 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -5033,9 +5033,6 @@ const docTemplate = `{
         "/answer/api/v1/report": {
             "post": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
@@ -5075,9 +5072,6 @@ const docTemplate = `{
         "/answer/api/v1/report/review": {
             "put": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
@@ -5180,9 +5174,6 @@ const docTemplate = `{
         "/answer/api/v1/review/pending/post": {
             "put": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
@@ -6295,9 +6286,6 @@ const docTemplate = `{
         "/answer/api/v1/user/email/verification/send": {
             "post": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
diff --git a/docs/swagger.json b/docs/swagger.json
index f8a179b7..3ad5156b 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -5006,9 +5006,6 @@
         "/answer/api/v1/report": {
             "post": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
@@ -5048,9 +5045,6 @@
         "/answer/api/v1/report/review": {
             "put": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
@@ -5153,9 +5147,6 @@
         "/answer/api/v1/review/pending/post": {
             "put": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
@@ -6268,9 +6259,6 @@
         "/answer/api/v1/user/email/verification/send": {
             "post": {
                 "security": [
-                    {
-                        "ApiKeyAuth": []
-                    },
                     {
                         "ApiKeyAuth": []
                     }
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 16c5cfbb..a521169c 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -6037,7 +6037,6 @@ paths:
             $ref: '#/definitions/handler.RespBody'
       security:
       - ApiKeyAuth: []
-      - ApiKeyAuth: []
       summary: add report
       tags:
       - Report
@@ -6062,7 +6061,6 @@ paths:
             $ref: '#/definitions/handler.RespBody'
       security:
       - ApiKeyAuth: []
-      - ApiKeyAuth: []
       summary: review report
       tags:
       - Report
@@ -6121,7 +6119,6 @@ paths:
             $ref: '#/definitions/handler.RespBody'
       security:
       - ApiKeyAuth: []
-      - ApiKeyAuth: []
       summary: update review
       tags:
       - Review
@@ -6785,7 +6782,6 @@ paths:
             type: string
       security:
       - ApiKeyAuth: []
-      - ApiKeyAuth: []
       summary: UserVerifyEmailSend
       tags:
       - User
diff --git a/internal/controller/report_controller.go 
b/internal/controller/report_controller.go
index 3198d54b..28048dd3 100644
--- a/internal/controller/report_controller.go
+++ b/internal/controller/report_controller.go
@@ -59,7 +59,6 @@ func NewReportController(
 // AddReport add report
 // @Summary add report
 // @Description add report <br> source (question, answer, comment, user)
-// @Security ApiKeyAuth
 // @Tags Report
 // @Accept json
 // @Produce json
@@ -130,7 +129,6 @@ func (rc *ReportController) GetUnreviewedReportPostPage(ctx 
*gin.Context) {
 // ReviewReport review report
 // @Summary review report
 // @Description review report
-// @Security ApiKeyAuth
 // @Tags Report
 // @Accept json
 // @Produce json
diff --git a/internal/controller/review_controller.go 
b/internal/controller/review_controller.go
index 3479b2eb..0e897d9b 100644
--- a/internal/controller/review_controller.go
+++ b/internal/controller/review_controller.go
@@ -86,7 +86,6 @@ func (rc *ReviewController) GetUnreviewedPostPage(ctx 
*gin.Context) {
 // UpdateReview update review
 // @Summary update review
 // @Description update review
-// @Security ApiKeyAuth
 // @Tags Review
 // @Accept json
 // @Produce json
diff --git a/internal/controller/user_controller.go 
b/internal/controller/user_controller.go
index 52702785..b418f601 100644
--- a/internal/controller/user_controller.go
+++ b/internal/controller/user_controller.go
@@ -335,7 +335,6 @@ func (uc *UserController) UserVerifyEmail(ctx *gin.Context) 
{
 // UserVerifyEmailSend godoc
 // @Summary UserVerifyEmailSend
 // @Description UserVerifyEmailSend
-// @Security ApiKeyAuth
 // @Tags User
 // @Accept json
 // @Produce json

Reply via email to