mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 01:05:14 +00:00
Add Pronouns to the User and UserSettings api structs
Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
parent
1c551f923b
commit
66ac657159
|
@ -41,6 +41,8 @@ type User struct {
|
|||
ProhibitLogin bool `json:"prohibit_login"`
|
||||
// the user's location
|
||||
Location string `json:"location"`
|
||||
// the user's pronouns
|
||||
Pronouns string `json:"pronouns"`
|
||||
// the user's website
|
||||
Website string `json:"website"`
|
||||
// the user's description
|
||||
|
@ -71,6 +73,7 @@ type UserSettings struct {
|
|||
Website string `json:"website"`
|
||||
Description string `json:"description"`
|
||||
Location string `json:"location"`
|
||||
Pronouns string `json:"pronouns"`
|
||||
Language string `json:"language"`
|
||||
Theme string `json:"theme"`
|
||||
DiffViewStyle string `json:"diff_view_style"`
|
||||
|
|
9
templates/swagger/v1_json.tmpl
generated
9
templates/swagger/v1_json.tmpl
generated
|
@ -23834,6 +23834,11 @@
|
|||
"type": "boolean",
|
||||
"x-go-name": "ProhibitLogin"
|
||||
},
|
||||
"pronouns": {
|
||||
"description": "the user's pronouns",
|
||||
"type": "string",
|
||||
"x-go-name": "Pronouns"
|
||||
},
|
||||
"restricted": {
|
||||
"description": "Is user restricted",
|
||||
"type": "boolean",
|
||||
|
@ -23909,6 +23914,10 @@
|
|||
"type": "string",
|
||||
"x-go-name": "Location"
|
||||
},
|
||||
"pronouns": {
|
||||
"type": "string",
|
||||
"x-go-name": "Pronouns"
|
||||
},
|
||||
"theme": {
|
||||
"type": "string",
|
||||
"x-go-name": "Theme"
|
||||
|
|
Loading…
Reference in a new issue