mobile device "not blank" name validation during updates

This commit is contained in:
in-void 2023-03-18 15:31:00 +01:00
parent 35116e236f
commit 1644fc369b

View File

@ -7,7 +7,7 @@ import (
type UpdateMobileDevice struct {
Id string `uri:"device_id" validate:"required,uuid4"`
Name string `json:"name" validate:"max=128"`
Name string `json:"name" validate:"not_blank,max=128"`
Platform string `json:"platform" validate:"omitempty,oneof=ios android huawei"`
FcmToken string `json:"fcm_token" validate:"max=256"`
}