Skip to content

Commit 4d3a964

Browse files
committed
Fix swagger
1 parent 7e8fa1e commit 4d3a964

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

routers/api/v1/packages/package.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ func LinkPackage(ctx *context.APIContext) {
239239
// type: string
240240
// required: true
241241
// - name: repo_name
242-
// in: query
243-
// description: Name of the repository to link.
242+
// in: path
243+
// description: name of the repository to link.
244244
// type: string
245-
// required: false
245+
// required: true
246246
// responses:
247247
// "201":
248248
// "$ref": "#/responses/empty"

templates/swagger/v1_json.tmpl

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)