api: remove name from edgegroupupdate payload validation (#588)

release/2.29.0
Anthony Lapenna 2025-04-01 13:25:09 +13:00 committed by GitHub
parent 4066a70ea5
commit 1edc56c0ce
1 changed files with 0 additions and 4 deletions

View File

@ -24,10 +24,6 @@ type edgeGroupUpdatePayload struct {
}
func (payload *edgeGroupUpdatePayload) Validate(r *http.Request) error {
if len(payload.Name) == 0 {
return errors.New("invalid Edge group name")
}
if payload.Dynamic && len(payload.TagIDs) == 0 {
return errors.New("tagIDs is mandatory for a dynamic Edge group")
}