From ec6657adc26c32b453650b45f73e3b31775ca55e Mon Sep 17 00:00:00 2001 From: noobHuKai Date: Sun, 25 Sep 2022 16:14:50 +0800 Subject: [PATCH] fix: route name max length is the same as schema.json (#2610) --- api/internal/core/entity/entity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/internal/core/entity/entity.go b/api/internal/core/entity/entity.go index f8fcc1c604..3969a53ee3 100644 --- a/api/internal/core/entity/entity.go +++ b/api/internal/core/entity/entity.go @@ -65,7 +65,7 @@ type Route struct { BaseInfo URI string `json:"uri,omitempty"` Uris []string `json:"uris,omitempty"` - Name string `json:"name" validate:"max=50"` + Name string `json:"name" validate:"max=100"` Desc string `json:"desc,omitempty" validate:"max=256"` Priority int `json:"priority,omitempty"` Methods []string `json:"methods,omitempty"`