Skip to content

Commit 2c15ad8

Browse files
authored
fix(teambition): declare TeambitionRepo struct for Swagger (#8483)
1 parent 7ac265f commit 2c15ad8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/plugins/teambition/api/scope_api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type ScopeDetail api.ScopeDetail[models.TeambitionProject, models.TeambitionScop
3434
// @Accept application/json
3535
// @Param connectionId path int true "connection ID"
3636
// @Param scope body PutScopesReqBody true "json"
37-
// @Success 200 {object} []models.teambitionRepo
37+
// @Success 200 {object} []models.TeambitionProject
3838
// @Failure 400 {object} shared.ApiBody "Bad Request"
3939
// @Failure 500 {object} shared.ApiBody "Internal Error"
4040
// @Router /plugins/teambition/connections/{connectionId}/scopes [PUT]
@@ -49,8 +49,8 @@ func PutScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, error
4949
// @Accept application/json
5050
// @Param connectionId path int true "connection ID"
5151
// @Param scopeId path int true "scope ID"
52-
// @Param scope body models.teambitionRepo true "json"
53-
// @Success 200 {object} models.teambitionRepo
52+
// @Param scope body models.TeambitionProject true "json"
53+
// @Success 200 {object} models.TeambitionProject
5454
// @Failure 400 {object} shared.ApiBody "Bad Request"
5555
// @Failure 500 {object} shared.ApiBody "Internal Error"
5656
// @Router /plugins/teambition/connections/{connectionId}/scopes/{scopeId} [PATCH]
@@ -97,7 +97,7 @@ func GetScope(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors
9797
// @Param connectionId path int true "connection ID"
9898
// @Param scopeId path int true "scope ID"
9999
// @Param delete_data_only query bool false "Only delete the scope data, not the scope itself"
100-
// @Success 200 {object} models.teambitionRepo
100+
// @Success 200 {object} models.TeambitionProject
101101
// @Failure 400 {object} shared.ApiBody "Bad Request"
102102
// @Failure 409 {object} srvhelper.DsRefs "References exist to this scope"
103103
// @Failure 500 {object} shared.ApiBody "Internal Error"

0 commit comments

Comments
 (0)