ImportDashboardCommand: Validate JSON fields (#21350)

* ImportDashboardCommand: Validate JSON fields
This commit is contained in:
Arve Knudsen
2020-01-14 16:26:54 +01:00
committed by GitHub
parent a6fac58088
commit d26075644c

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"`
}