strongly type repository default merge style in swagger file
This commit is contained in:
parent
43e2f85b82
commit
de7754073b
|
@ -17622,6 +17622,16 @@
|
||||||
},
|
},
|
||||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||||
},
|
},
|
||||||
|
"DefaultMergeStyle": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"merge",
|
||||||
|
"rebase",
|
||||||
|
"rebase-merge",
|
||||||
|
"squash",
|
||||||
|
"fast-forward-only"
|
||||||
|
]
|
||||||
|
},
|
||||||
"DeleteEmailOption": {
|
"DeleteEmailOption": {
|
||||||
"description": "DeleteEmailOption options when deleting email addresses",
|
"description": "DeleteEmailOption options when deleting email addresses",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -18269,9 +18279,7 @@
|
||||||
"x-go-name": "DefaultDeleteBranchAfterMerge"
|
"x-go-name": "DefaultDeleteBranchAfterMerge"
|
||||||
},
|
},
|
||||||
"default_merge_style": {
|
"default_merge_style": {
|
||||||
"description": "set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", \"squash\", or \"fast-forward-only\".",
|
"$ref": "#/definitions/DefaultMergeStyle"
|
||||||
"type": "string",
|
|
||||||
"x-go-name": "DefaultMergeStyle"
|
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"description": "a short description of the repository.",
|
"description": "a short description of the repository.",
|
||||||
|
@ -21151,8 +21159,7 @@
|
||||||
"x-go-name": "DefaultDeleteBranchAfterMerge"
|
"x-go-name": "DefaultDeleteBranchAfterMerge"
|
||||||
},
|
},
|
||||||
"default_merge_style": {
|
"default_merge_style": {
|
||||||
"type": "string",
|
"$ref": "#/definitions/DefaultMergeStyle"
|
||||||
"x-go-name": "DefaultMergeStyle"
|
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
Loading…
Reference in a new issue