From 8cdc2f359394a3b98b666bb98fc401d134032df1 Mon Sep 17 00:00:00 2001 From: in-void Date: Sun, 12 Mar 2023 15:00:02 +0100 Subject: [PATCH] validate blank browser extension name --- .../browser_extension/app/command/register_browser_extension.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/browser_extension/app/command/register_browser_extension.go b/internal/api/browser_extension/app/command/register_browser_extension.go index 3e54db1..7ffc3bd 100644 --- a/internal/api/browser_extension/app/command/register_browser_extension.go +++ b/internal/api/browser_extension/app/command/register_browser_extension.go @@ -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"`