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 { type UpdateMobileDevice struct {
Id string `uri:"device_id" validate:"required,uuid4"` 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"` Platform string `json:"platform" validate:"omitempty,oneof=ios android huawei"`
FcmToken string `json:"fcm_token" validate:"max=256"` FcmToken string `json:"fcm_token" validate:"max=256"`
} }