From 038cad9754571d5d9a868fe2de393d04cdf2b282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Fri, 8 May 2026 18:37:35 -0400 Subject: [PATCH] fix: remove `required` binding from `NewParent` field of `MoveGroupOption` struct to allow moving to a group id of 0 (i.e., the root level) --- modules/structs/repo_group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/structs/repo_group.go b/modules/structs/repo_group.go index 3e0f8fdbc0..1bd48ea71f 100644 --- a/modules/structs/repo_group.go +++ b/modules/structs/repo_group.go @@ -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"` }