···5566// AddCollaboratorOption options when adding a user as a collaborator of a repository
77type AddCollaboratorOption struct {
88- // enum: read,write,admin
88+ // enum: ["read", "write", "admin"]
99 Permission *string `json:"permission"`
1010}
1111
+1-1
modules/structs/repo_file.go
···6868type ChangeFileOperation struct {
6969 // indicates what to do with the file
7070 // required: true
7171- // enum: create,update,delete
7171+ // enum: ["create", "update", "delete"]
7272 Operation string `json:"operation" binding:"Required"`
7373 // path to the existing or new file
7474 // required: true