fix: allow empty password for ShareCreateService (#2498)

pull/2511/head
WintBit 3 months ago committed by GitHub
parent 9d28fde00c
commit 41eb010698
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,7 +20,7 @@ type (
ShareCreateService struct {
Uri string `json:"uri" binding:"required"`
IsPrivate bool `json:"is_private"`
Password string `json:"password" binding:"max=32,alphanum,omitempty"`
Password string `json:"password" binding:"omitempty,max=32,alphanum"`
RemainDownloads int `json:"downloads"`
Expire int `json:"expire"`
ShareView bool `json:"share_view"`

Loading…
Cancel
Save