mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
7707ad7a0a
* Partial fix for #4010 Swagger needs a comment line above each swagger:response comment -- it uses these to populate the description: fields. Adding minimal text for now on the way to getting swagger validate to pass. Many standard swagger client libraries will not work at all with gitea until validate passes, so prioritizing that over better descriptions for now. Signed-off-by: Steve Traugott <stevegt@t7a.org>
70 lines
1.8 KiB
Go
70 lines
1.8 KiB
Go
// Copyright 2017 The Gitea Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package swagger
|
|
|
|
import (
|
|
"code.gitea.io/gitea/modules/auth"
|
|
api "code.gitea.io/sdk/gitea"
|
|
)
|
|
|
|
// not actually a response, just a hack to get go-swagger to include definitions
|
|
// of the various XYZOption structs
|
|
|
|
// parameterBodies
|
|
// swagger:response parameterBodies
|
|
type swaggerParameterBodies struct {
|
|
AddCollaboratorOption api.AddCollaboratorOption
|
|
|
|
CreateEmailOption api.CreateEmailOption
|
|
DeleteEmailOption api.DeleteEmailOption
|
|
|
|
CreateHookOption api.CreateHookOption
|
|
EditHookOption api.EditHookOption
|
|
|
|
CreateIssueOption api.CreateIssueOption
|
|
EditIssueOption api.EditIssueOption
|
|
|
|
CreateIssueCommentOption api.CreateIssueCommentOption
|
|
EditIssueCommentOption api.EditIssueCommentOption
|
|
|
|
IssueLabelsOption api.IssueLabelsOption
|
|
|
|
CreateKeyOption api.CreateKeyOption
|
|
|
|
CreateLabelOption api.CreateLabelOption
|
|
EditLabelOption api.EditLabelOption
|
|
|
|
MarkdownOption api.MarkdownOption
|
|
|
|
CreateMilestoneOption api.CreateMilestoneOption
|
|
EditMilestoneOption api.EditMilestoneOption
|
|
|
|
CreateOrgOption api.CreateOrgOption
|
|
EditOrgOption api.EditOrgOption
|
|
|
|
CreatePullRequestOption api.CreatePullRequestOption
|
|
EditPullRequestOption api.EditPullRequestOption
|
|
|
|
CreateReleaseOption api.CreateReleaseOption
|
|
EditReleaseOption api.EditReleaseOption
|
|
|
|
CreateRepoOption api.CreateRepoOption
|
|
CreateForkOption api.CreateForkOption
|
|
|
|
CreateStatusOption api.CreateStatusOption
|
|
|
|
CreateTeamOption api.CreateTeamOption
|
|
EditTeamOption api.EditTeamOption
|
|
|
|
AddTimeOption api.AddTimeOption
|
|
|
|
CreateUserOption api.CreateUserOption
|
|
EditUserOption api.EditUserOption
|
|
|
|
MigrateRepoForm auth.MigrateRepoForm
|
|
|
|
EditAttachmentOptions api.EditAttachmentOptions
|
|
}
|