loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request '[CHORE] Fix swagger deprecation message' (#4916) from gusted/swagger-deprecated into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4916
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>

Gusted 6102f48c 3b82a634

+17 -17
+1 -1
modules/structs/activity.go
··· 10 10 UserID int64 `json:"user_id"` // Receiver user 11 11 // the type of action 12 12 // 13 - // enum: create_repo,rename_repo,star_repo,watch_repo,commit_repo,create_issue,create_pull_request,transfer_repo,push_tag,comment_issue,merge_pull_request,close_issue,reopen_issue,close_pull_request,reopen_pull_request,delete_tag,delete_branch,mirror_sync_push,mirror_sync_create,mirror_sync_delete,approve_pull_request,reject_pull_request,comment_pull,publish_release,pull_review_dismissed,pull_request_ready_for_review,auto_merge_pull_request 13 + // enum: ["create_repo", "rename_repo", "star_repo", "watch_repo", "commit_repo", "create_issue", "create_pull_request", "transfer_repo", "push_tag", "comment_issue", "merge_pull_request", "close_issue", "reopen_issue", "close_pull_request", "reopen_pull_request", "delete_tag", "delete_branch", "mirror_sync_push", "mirror_sync_create", "mirror_sync_delete", "approve_pull_request", "reject_pull_request", "comment_pull", "publish_release", "pull_review_dismissed", "pull_request_ready_for_review", "auto_merge_pull_request"] 14 14 OpType string `json:"op_type"` 15 15 ActUserID int64 `json:"act_user_id"` 16 16 ActUser *User `json:"act_user"`
+1 -1
modules/structs/attachment.go
··· 18 18 Created time.Time `json:"created_at"` 19 19 UUID string `json:"uuid"` 20 20 DownloadURL string `json:"browser_download_url"` 21 - // Enum: attachment,external 21 + // enum: ["attachment", "external"] 22 22 Type string `json:"type"` 23 23 } 24 24
+1 -1
modules/structs/hook.go
··· 45 45 // CreateHookOption options when create a hook 46 46 type CreateHookOption struct { 47 47 // required: true 48 - // enum: forgejo,dingtalk,discord,gitea,gogs,msteams,slack,telegram,feishu,wechatwork,packagist 48 + // enum: ["forgejo", "dingtalk", "discord", "gitea", "gogs", "msteams", "slack", "telegram", "feishu", "wechatwork", "packagist"] 49 49 Type string `json:"type" binding:"Required"` 50 50 // required: true 51 51 Config CreateHookOptionConfig `json:"config" binding:"Required"`
+1 -1
modules/structs/issue.go
··· 63 63 // Whether the issue is open or closed 64 64 // 65 65 // type: string 66 - // enum: open,closed 66 + // enum: ["open", "closed"] 67 67 State StateType `json:"state"` 68 68 IsLocked bool `json:"is_locked"` 69 69 Comments int `json:"comments"`
+1 -1
modules/structs/issue_milestone.go
··· 31 31 Description string `json:"description"` 32 32 // swagger:strfmt date-time 33 33 Deadline *time.Time `json:"due_on"` 34 - // enum: open,closed 34 + // enum: ["open", "closed"] 35 35 State string `json:"state"` 36 36 } 37 37
+2 -2
modules/structs/org.go
··· 38 38 Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` 39 39 Location string `json:"location" binding:"MaxSize(50)"` 40 40 // possible values are `public` (default), `limited` or `private` 41 - // enum: public,limited,private 41 + // enum: ["public", "limited", "private"] 42 42 Visibility string `json:"visibility" binding:"In(,public,limited,private)"` 43 43 RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` 44 44 } ··· 53 53 Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` 54 54 Location string `json:"location" binding:"MaxSize(50)"` 55 55 // possible values are `public`, `limited` or `private` 56 - // enum: public,limited,private 56 + // enum: ["public", "limited", "private"] 57 57 Visibility string `json:"visibility" binding:"In(,public,limited,private)"` 58 58 RepoAdminChangeTeamAccess *bool `json:"repo_admin_change_team_access"` 59 59 }
+3 -3
modules/structs/org_team.go
··· 11 11 Description string `json:"description"` 12 12 Organization *Organization `json:"organization"` 13 13 IncludesAllRepositories bool `json:"includes_all_repositories"` 14 - // enum: none,read,write,admin,owner 14 + // enum: ["none", "read", "write", "admin", "owner"] 15 15 Permission string `json:"permission"` 16 16 // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"] 17 17 // Deprecated: This variable should be replaced by UnitsMap and will be dropped in later versions. ··· 27 27 Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(255)"` 28 28 Description string `json:"description" binding:"MaxSize(255)"` 29 29 IncludesAllRepositories bool `json:"includes_all_repositories"` 30 - // enum: read,write,admin 30 + // enum: ["read", "write", "admin"] 31 31 Permission string `json:"permission"` 32 32 // example: ["repo.actions","repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.ext_wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"] 33 33 // Deprecated: This variable should be replaced by UnitsMap and will be dropped in later versions. ··· 43 43 Name string `json:"name" binding:"AlphaDashDot;MaxSize(255)"` 44 44 Description *string `json:"description" binding:"MaxSize(255)"` 45 45 IncludesAllRepositories *bool `json:"includes_all_repositories"` 46 - // enum: read,write,admin 46 + // enum: ["read", "write", "admin"] 47 47 Permission string `json:"permission"` 48 48 // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"] 49 49 // Deprecated: This variable should be replaced by UnitsMap and will be dropped in later versions.
+4 -4
modules/structs/repo.go
··· 109 109 Internal bool `json:"internal"` 110 110 MirrorInterval string `json:"mirror_interval"` 111 111 // ObjectFormatName of the underlying git repository 112 - // enum: sha1,sha256 112 + // enum: ["sha1", "sha256"] 113 113 ObjectFormatName string `json:"object_format_name"` 114 114 // swagger:strfmt date-time 115 115 MirrorUpdated time.Time `json:"mirror_updated,omitempty"` ··· 154 154 // DefaultBranch of the repository (used when initializes and in template) 155 155 DefaultBranch string `json:"default_branch" binding:"GitRefName;MaxSize(100)"` 156 156 // TrustModel of the repository 157 - // enum: default,collaborator,committer,collaboratorcommitter 157 + // enum: ["default", "collaborator", "committer", "collaboratorcommitter"] 158 158 TrustModel string `json:"trust_model"` 159 159 // ObjectFormatName of the underlying git repository 160 - // enum: sha1,sha256 160 + // enum: ["sha1", "sha256"] 161 161 ObjectFormatName string `json:"object_format_name" binding:"MaxSize(6)"` 162 162 } 163 163 ··· 359 359 // required: true 360 360 RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` 361 361 362 - // enum: git,github,gitea,gitlab,gogs,onedev,gitbucket,codebase 362 + // enum: ["git", "github", "gitea", "gitlab", "gogs", "onedev", "gitbucket", "codebase"] 363 363 Service string `json:"service"` 364 364 AuthUsername string `json:"auth_username"` 365 365 AuthPassword string `json:"auth_password"`
+1 -1
modules/structs/repo_collaborator.go
··· 5 5 6 6 // AddCollaboratorOption options when adding a user as a collaborator of a repository 7 7 type AddCollaboratorOption struct { 8 - // enum: read,write,admin 8 + // enum: ["read", "write", "admin"] 9 9 Permission *string `json:"permission"` 10 10 } 11 11
+1 -1
modules/structs/repo_file.go
··· 68 68 type ChangeFileOperation struct { 69 69 // indicates what to do with the file 70 70 // required: true 71 - // enum: create,update,delete 71 + // enum: ["create", "update", "delete"] 72 72 Operation string `json:"operation" binding:"Required"` 73 73 // path to the existing or new file 74 74 // required: true
+1 -1
services/forms/repo_form.go
··· 429 429 // swagger:model MergePullRequestOption 430 430 type MergePullRequestForm struct { 431 431 // required: true 432 - // enum: merge,rebase,rebase-merge,squash,fast-forward-only,manually-merged 432 + // enum: ["merge", "rebase", "rebase-merge", "squash", "fast-forward-only", "manually-merged"] 433 433 Do string `binding:"Required;In(merge,rebase,rebase-merge,squash,fast-forward-only,manually-merged)"` 434 434 MergeTitleField string 435 435 MergeMessageField string