validate blank browser extension name

This commit is contained in:
in-void 2023-03-12 15:00:02 +01:00
parent 59d25dd2e5
commit 8cdc2f3593

View File

@ -7,7 +7,7 @@ import (
type RegisterBrowserExtension struct {
BrowserExtensionId uuid.UUID
Name string `json:"name" validate:"required,lte=64"`
Name string `json:"name" validate:"not_blank,lte=64"`
BrowserName string `json:"browser_name" validate:"required,lte=255"`
BrowserVersion string `json:"browser_version" validate:"required,lte=32"`
PublicKey string `json:"public_key" validate:"required,lte=768"`