ImportDashboardCommand: Validate JSON fields (#21350)

* ImportDashboardCommand: Validate JSON fields
This commit is contained in:
Arve Knudsen authored and GitHub committed 2020-01-14 16:26:54 +01:00
1 parent a6fac58088
commit d26075644c
1 file changed
+1 -1
+1 -1
View File
@@ -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"`
}