aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger/v1_json.tmpl
diff options
context:
space:
mode:
authorKN4CK3R <KN4CK3R@users.noreply.github.com>2021-05-02 21:03:15 +0200
committerGitHub <noreply@github.com>2021-05-02 21:03:15 +0200
commit8c8471e75464fa6253a44cdbb8f6ad233aae9067 (patch)
treef8fd7e87b26f2b735208cb95de147c2ef93d814e /templates/swagger/v1_json.tmpl
parent0590176a23c056b274bd30ff7cec8f8a203f0665 (diff)
downloadgitea-8c8471e75464fa6253a44cdbb8f6ad233aae9067.tar.gz
gitea-8c8471e75464fa6253a44cdbb8f6ad233aae9067.zip
Addition to (Add Location, Website and Description to API #15675) (#15690)
* Use same name as other structs. * Sync with normal forms. * Edit description with API. * Workaround for nil value.
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r--templates/swagger/v1_json.tmpl14
1 files changed, 9 insertions, 5 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 6d690ba275..8255ed6e6e 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -13800,6 +13800,10 @@
"type": "boolean",
"x-go-name": "AllowImportLocal"
},
+ "description": {
+ "type": "string",
+ "x-go-name": "Description"
+ },
"email": {
"type": "string",
"format": "email",
@@ -16251,16 +16255,16 @@
"type": "string",
"x-go-name": "AvatarURL"
},
- "bio": {
- "description": "the user's biography",
- "type": "string",
- "x-go-name": "Description"
- },
"created": {
"type": "string",
"format": "date-time",
"x-go-name": "Created"
},
+ "description": {
+ "description": "the user's description",
+ "type": "string",
+ "x-go-name": "Description"
+ },
"email": {
"type": "string",
"format": "email",