Skip to content

Commit 1b04cbb

Browse files
committed
tab2space
1 parent 8bb41e3 commit 1b04cbb

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

routers/api/v1/repo/commits.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ func DownloadCommitDiffOrPatch(ctx *context.APIContext) {
238238
// type: string
239239
// required: true
240240
// - name: diffType
241-
// in: path
242-
// description: whether the output is diff or patch
243-
// type: string
244-
// enum: [diff, patch]
245-
// required: true
241+
// in: path
242+
// description: whether the output is diff or patch
243+
// type: string
244+
// enum: [diff, patch]
245+
// required: true
246246
// responses:
247247
// "200":
248248
// "$ref": "#/responses/string"

templates/swagger/v1_json.tmpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,6 +3612,17 @@
36123612
"name": "sha",
36133613
"in": "path",
36143614
"required": true
3615+
},
3616+
{
3617+
"enum": [
3618+
"diff",
3619+
"patch"
3620+
],
3621+
"type": "string",
3622+
"description": "whether the output is diff or patch",
3623+
"name": "diffType",
3624+
"in": "path",
3625+
"required": true
36153626
}
36163627
],
36173628
"responses": {

0 commit comments

Comments
 (0)