feat(analytics): dashbaord creatge validation
This commit is contained in:
parent
0e00ca19ad
commit
64d9029554
1 changed files with 2 additions and 2 deletions
|
|
@ -32,8 +32,8 @@ type GetDashboardsResponse struct {
|
|||
// REQUESTS
|
||||
|
||||
type CreateDashboardRequest struct {
|
||||
Name string `json:"name" validate:"required,max=150"`
|
||||
Description string `json:"description"`
|
||||
Name string `json:"name" validate:"required,min=3,max=150"`
|
||||
Description string `json:"description" validate:"max=500"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
IsPinned bool `json:"is_pinned"`
|
||||
Metrics []int `json:"metrics"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue