From d26075644c1f17ac8c3b76d44b06d70ec99706f6 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 14 Jan 2020 16:26:54 +0100 Subject: [PATCH] ImportDashboardCommand: Validate JSON fields (#21350) * ImportDashboardCommand: Validate JSON fields --- pkg/api/dtos/plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/dtos/plugins.go b/pkg/api/dtos/plugins.go index 8b32bea41dc..48ed908d797 100644 --- a/pkg/api/dtos/plugins.go +++ b/pkg/api/dtos/plugins.go @@ -56,7 +56,7 @@ type ImportDashboardCommand struct { PluginId string `json:"pluginId"` Path string `json:"path"` Overwrite bool `json:"overwrite"` - Dashboard *simplejson.Json `json:"dashboard"` + Dashboard *simplejson.Json `json:"dashboard" binding:"Required"` Inputs []plugins.ImportDashboardInput `json:"inputs"` FolderId int64 `json:"folderId"` }