diff --git a/routers/api/v1/group/group.go b/routers/api/v1/group/group.go index c223666056..af41784aea 100644 --- a/routers/api/v1/group/group.go +++ b/routers/api/v1/group/group.go @@ -58,7 +58,7 @@ func NewGroup(ctx *context.APIContext) { // in: body // required: true // schema: - // "$ref": "#/definitions/CreateGroupOption" + // "$ref": "#/definitions/NewGroupOption" // responses: // "201": // "$ref": "#/responses/Group" @@ -94,7 +94,7 @@ func NewSubGroup(ctx *context.APIContext) { // in: body // required: true // schema: - // "$ref": "#/definitions/CreateGroupOption" + // "$ref": "#/definitions/NewGroupOption" // responses: // "201": // "$ref": "#/responses/Group" diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index c58873d7c7..8189e06e12 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -1492,7 +1492,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CreateGroupOption" + "$ref": "#/definitions/NewGroupOption" } } ], @@ -3077,7 +3077,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CreateGroupOption" + "$ref": "#/definitions/NewGroupOption" } } ],