1
0
Fork 0

strongly type repository default merge style in swagger file

This commit is contained in:
Cyborus 2024-04-26 12:50:37 -04:00
parent 43e2f85b82
commit de7754073b
No known key found for this signature in database

View file

@ -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",