0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-10 09:41:52 +02:00

fix: remove required binding from NewParent field of MoveGroupOption struct to allow moving to a group id of 0 (i.e., the root level)

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-05-08 18:37:35 -04:00
parent 92ff4a62f2
commit 038cad9754
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -36,7 +36,7 @@ type MoveGroupOption struct {
// the new parent group. can be 0 to specify no parent
//
// required: true
NewParent int64 `json:"newParent" binding:"Required"`
NewParent int64 `json:"newParent"`
// the position of this group in its new parent
NewPos *int `json:"newPos,omitempty"`
}