Commit d2607564 by Arve Knudsen Committed by GitHub

ImportDashboardCommand: Validate JSON fields (#21350)

* ImportDashboardCommand: Validate JSON fields
parent a6fac580
......@@ -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"`
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment