mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-07 02:45:22 +02:00
[gitea] week 2025-17 cherry pick (gitea/main -> forgejo) (#7713)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7713 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
c5d274a384
2 changed files with 15 additions and 2 deletions
|
@ -23,9 +23,11 @@ type AccessToken struct {
|
||||||
type AccessTokenList []*AccessToken
|
type AccessTokenList []*AccessToken
|
||||||
|
|
||||||
// CreateAccessTokenOption options when create access token
|
// CreateAccessTokenOption options when create access token
|
||||||
|
// swagger:model CreateAccessTokenOption
|
||||||
type CreateAccessTokenOption struct {
|
type CreateAccessTokenOption struct {
|
||||||
// required: true
|
// required: true
|
||||||
Name string `json:"name" binding:"Required"`
|
Name string `json:"name" binding:"Required"`
|
||||||
|
// example: ["all", "read:activitypub","read:issue", "write:misc", "read:notification", "read:organization", "read:package", "read:repository", "read:user"]
|
||||||
Scopes []string `json:"scopes"`
|
Scopes []string `json:"scopes"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
13
templates/swagger/v1_json.tmpl
generated
13
templates/swagger/v1_json.tmpl
generated
|
@ -22082,7 +22082,18 @@
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"x-go-name": "Scopes"
|
"x-go-name": "Scopes",
|
||||||
|
"example": [
|
||||||
|
"all",
|
||||||
|
"read:activitypub",
|
||||||
|
"read:issue",
|
||||||
|
"write:misc",
|
||||||
|
"read:notification",
|
||||||
|
"read:organization",
|
||||||
|
"read:package",
|
||||||
|
"read:repository",
|
||||||
|
"read:user"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-go-package": "forgejo.org/modules/structs"
|
"x-go-package": "forgejo.org/modules/structs"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue