diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-09-29 05:27:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 05:27:33 +0200 |
commit | b7309b8ccb16f6303ae300b755baef9f9713d457 (patch) | |
tree | cab46a2eafee748123b76f1d52d00037d44a4bd9 /templates | |
parent | 1dfa28ffa557720d164a351783be64c9a47a0adb (diff) | |
download | gitea-b7309b8ccb16f6303ae300b755baef9f9713d457.tar.gz gitea-b7309b8ccb16f6303ae300b755baef9f9713d457.zip |
Add name field for org api (#21270)
related #21205
The field `UserName` is not really usefull for an organization.
This adds a second `Name` field.
The [GitHub API](https://docs.github.com/en/rest/orgs/orgs#get-an-organization) uses `name` too. `UserName` should be deprecated then.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 52553e2e89..b0e94b8bb5 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -17326,11 +17326,16 @@ "type": "string", "x-go-name": "Location" }, + "name": { + "type": "string", + "x-go-name": "Name" + }, "repo_admin_change_team_access": { "type": "boolean", "x-go-name": "RepoAdminChangeTeamAccess" }, "username": { + "description": "deprecated", "type": "string", "x-go-name": "UserName" }, |