mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
Fix swagger errors (#4220)
Fix all the resting errors to have a valid swagger file. They are still some warnings but nothing blocking. Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely. Fix #4088 by activating validation in drone Should fix #4010.
This commit is contained in:
parent
0ba165e2ea
commit
908e8942cc
15 changed files with 440 additions and 262 deletions
|
@ -15,55 +15,87 @@ import (
|
|||
// parameterBodies
|
||||
// swagger:response parameterBodies
|
||||
type swaggerParameterBodies struct {
|
||||
// in:body
|
||||
AddCollaboratorOption api.AddCollaboratorOption
|
||||
|
||||
// in:body
|
||||
CreateEmailOption api.CreateEmailOption
|
||||
// in:body
|
||||
DeleteEmailOption api.DeleteEmailOption
|
||||
|
||||
// in:body
|
||||
CreateHookOption api.CreateHookOption
|
||||
EditHookOption api.EditHookOption
|
||||
// in:body
|
||||
EditHookOption api.EditHookOption
|
||||
|
||||
// in:body
|
||||
CreateIssueOption api.CreateIssueOption
|
||||
EditIssueOption api.EditIssueOption
|
||||
// in:body
|
||||
EditIssueOption api.EditIssueOption
|
||||
|
||||
// in:body
|
||||
CreateIssueCommentOption api.CreateIssueCommentOption
|
||||
EditIssueCommentOption api.EditIssueCommentOption
|
||||
// in:body
|
||||
EditIssueCommentOption api.EditIssueCommentOption
|
||||
|
||||
// in:body
|
||||
IssueLabelsOption api.IssueLabelsOption
|
||||
|
||||
// in:body
|
||||
CreateKeyOption api.CreateKeyOption
|
||||
|
||||
// in:body
|
||||
CreateLabelOption api.CreateLabelOption
|
||||
EditLabelOption api.EditLabelOption
|
||||
// in:body
|
||||
EditLabelOption api.EditLabelOption
|
||||
|
||||
// in:body
|
||||
MarkdownOption api.MarkdownOption
|
||||
|
||||
// in:body
|
||||
CreateMilestoneOption api.CreateMilestoneOption
|
||||
EditMilestoneOption api.EditMilestoneOption
|
||||
// in:body
|
||||
EditMilestoneOption api.EditMilestoneOption
|
||||
|
||||
// in:body
|
||||
CreateOrgOption api.CreateOrgOption
|
||||
EditOrgOption api.EditOrgOption
|
||||
// in:body
|
||||
EditOrgOption api.EditOrgOption
|
||||
|
||||
// in:body
|
||||
CreatePullRequestOption api.CreatePullRequestOption
|
||||
EditPullRequestOption api.EditPullRequestOption
|
||||
// in:body
|
||||
EditPullRequestOption api.EditPullRequestOption
|
||||
|
||||
// in:body
|
||||
CreateReleaseOption api.CreateReleaseOption
|
||||
EditReleaseOption api.EditReleaseOption
|
||||
// in:body
|
||||
EditReleaseOption api.EditReleaseOption
|
||||
|
||||
// in:body
|
||||
CreateRepoOption api.CreateRepoOption
|
||||
// in:body
|
||||
CreateForkOption api.CreateForkOption
|
||||
|
||||
// in:body
|
||||
CreateStatusOption api.CreateStatusOption
|
||||
|
||||
// in:body
|
||||
CreateTeamOption api.CreateTeamOption
|
||||
EditTeamOption api.EditTeamOption
|
||||
// in:body
|
||||
EditTeamOption api.EditTeamOption
|
||||
|
||||
// in:body
|
||||
AddTimeOption api.AddTimeOption
|
||||
|
||||
// in:body
|
||||
CreateUserOption api.CreateUserOption
|
||||
EditUserOption api.EditUserOption
|
||||
// in:body
|
||||
EditUserOption api.EditUserOption
|
||||
|
||||
// in:body
|
||||
MigrateRepoForm auth.MigrateRepoForm
|
||||
|
||||
// in:body
|
||||
EditAttachmentOptions api.EditAttachmentOptions
|
||||
}
|
||||
|
|
|
@ -102,6 +102,7 @@ type swaggerResponseWatchInfo struct {
|
|||
// SearchResults
|
||||
// swagger:response SearchResults
|
||||
type swaggerResponseSearchResults struct {
|
||||
// in:body
|
||||
Body api.SearchResults `json:"body"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue