Browse Source

fix(api): do not include null jsonData field in /api/datasources resource, closes #3755

Torkel Ödegaard 10 years ago
parent
commit
38ddc88b20
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/api/dtos/models.go

+ 1 - 1
pkg/api/dtos/models.go

@@ -64,7 +64,7 @@ type DataSource struct {
 	BasicAuthPassword string                 `json:"basicAuthPassword"`
 	WithCredentials   bool                   `json:"withCredentials"`
 	IsDefault         bool                   `json:"isDefault"`
-	JsonData          map[string]interface{} `json:"jsonData"`
+	JsonData          map[string]interface{} `json:"jsonData,omitempty"`
 }
 
 type MetricQueryResultDto struct {