forked from kevadesu/forgejo
swagger/fix: []string are not enum by swagger definition (#7916)
* []string are not enum by swagger definition * apply suggestion of @guillep2k * re-generate swagger file
This commit is contained in:
parent
042089fbaf
commit
954fe0e4e0
2 changed files with 21 additions and 21 deletions
|
@ -7742,7 +7742,11 @@
|
|||
},
|
||||
"units": {
|
||||
"type": "array",
|
||||
"enum": [
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units",
|
||||
"example": [
|
||||
"repo.code",
|
||||
"repo.issues",
|
||||
"repo.ext_issues",
|
||||
|
@ -7750,11 +7754,7 @@
|
|||
"repo.pulls",
|
||||
"repo.releases",
|
||||
"repo.ext_wiki"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units"
|
||||
]
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
|
@ -8276,7 +8276,11 @@
|
|||
},
|
||||
"units": {
|
||||
"type": "array",
|
||||
"enum": [
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units",
|
||||
"example": [
|
||||
"repo.code",
|
||||
"repo.issues",
|
||||
"repo.ext_issues",
|
||||
|
@ -8284,11 +8288,7 @@
|
|||
"repo.pulls",
|
||||
"repo.releases",
|
||||
"repo.ext_wiki"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units"
|
||||
]
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
|
@ -9827,7 +9827,11 @@
|
|||
},
|
||||
"units": {
|
||||
"type": "array",
|
||||
"enum": [
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units",
|
||||
"example": [
|
||||
"repo.code",
|
||||
"repo.issues",
|
||||
"repo.ext_issues",
|
||||
|
@ -9835,11 +9839,7 @@
|
|||
"repo.pulls",
|
||||
"repo.releases",
|
||||
"repo.ext_wiki"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Units"
|
||||
]
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue