mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-22 21:16:06 +00:00
fix: add missing swagger tags
This commit is contained in:
parent
aa32ad74af
commit
81c3d0ce34
@ -5,6 +5,7 @@ package structs
|
||||
|
||||
import "time"
|
||||
|
||||
// swagger:model
|
||||
type NewProjectPayload struct {
|
||||
// required:true
|
||||
Title string `json:"title" binding:"Required"`
|
||||
@ -15,6 +16,7 @@ type NewProjectPayload struct {
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
// swagger:model
|
||||
type UpdateProjectPayload struct {
|
||||
// required:true
|
||||
Title string `json:"title" binding:"Required"`
|
||||
|
@ -190,4 +190,10 @@ type swaggerParameterBodies struct {
|
||||
|
||||
// in:body
|
||||
CreateOrUpdateSecretOption api.CreateOrUpdateSecretOption
|
||||
|
||||
// in:body
|
||||
NewProjectPayload api.NewProjectPayload
|
||||
|
||||
// in:body
|
||||
UpdateProjectPayload api.UpdateProjectPayload
|
||||
}
|
||||
|
51
templates/swagger/v1_json.tmpl
generated
51
templates/swagger/v1_json.tmpl
generated
@ -21119,6 +21119,35 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"NewProjectPayload": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title",
|
||||
"board_type",
|
||||
"card_type"
|
||||
],
|
||||
"properties": {
|
||||
"board_type": {
|
||||
"type": "integer",
|
||||
"format": "uint8",
|
||||
"x-go-name": "BoardType"
|
||||
},
|
||||
"card_type": {
|
||||
"type": "integer",
|
||||
"format": "uint8",
|
||||
"x-go-name": "CardType"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"x-go-name": "Description"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"x-go-name": "Title"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"NodeInfo": {
|
||||
"description": "NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks",
|
||||
"type": "object",
|
||||
@ -21719,6 +21748,9 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "IsClosed"
|
||||
},
|
||||
"owner": {
|
||||
"$ref": "#/definitions/User"
|
||||
},
|
||||
"repository": {
|
||||
"$ref": "#/definitions/RepositoryMeta"
|
||||
},
|
||||
@ -23111,6 +23143,23 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"UpdateProjectPayload": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"x-go-name": "Description"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"x-go-name": "Title"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"UpdateRepoAvatarOption": {
|
||||
"description": "UpdateRepoAvatarUserOption options when updating the repo avatar",
|
||||
"type": "object",
|
||||
@ -24462,7 +24511,7 @@
|
||||
"parameterBodies": {
|
||||
"description": "parameterBodies",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/CreateOrUpdateSecretOption"
|
||||
"$ref": "#/definitions/UpdateProjectPayload"
|
||||
}
|
||||
},
|
||||
"redirect": {
|
||||
|
Loading…
Reference in New Issue
Block a user