From 1891dac5478f095453c4e1eb3b884926b5344deb Mon Sep 17 00:00:00 2001
From: Gusted <postmaster@gusted.xyz>
Date: Sat, 20 Jan 2024 22:33:36 +0100
Subject: [PATCH] [GITEA] Adjust name of operation

- The name could be conflucted with the `GET
/user/applications/oauth2/{id}` operation, as it only differed in a
single letter being uppercase. Change it to be
userGetOAuth2Application**s**, as that's also more accurate for this function.
- Resolves #2163
---
 routers/api/v1/user/app.go     | 2 +-
 templates/swagger/v1_json.tmpl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go
index f045fb4d5d..eb35d8031a 100644
--- a/routers/api/v1/user/app.go
+++ b/routers/api/v1/user/app.go
@@ -244,7 +244,7 @@ func CreateOauth2Application(ctx *context.APIContext) {
 
 // ListOauth2Applications list all the Oauth2 application
 func ListOauth2Applications(ctx *context.APIContext) {
-	// swagger:operation GET /user/applications/oauth2 user userGetOauth2Application
+	// swagger:operation GET /user/applications/oauth2 user userGetOAuth2Applications
 	// ---
 	// summary: List the authenticated user's oauth2 applications
 	// produces:
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index dd8c2c55b4..7164907257 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -15169,7 +15169,7 @@
           "user"
         ],
         "summary": "List the authenticated user's oauth2 applications",
-        "operationId": "userGetOauth2Application",
+        "operationId": "userGetOAuth2Applications",
         "parameters": [
           {
             "type": "integer",