From 38ddc88b20ef6af9c57c89dc687eebc5a81a7d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 15 Jan 2016 15:56:54 +0100 Subject: [PATCH] fix(api): do not include null jsonData field in /api/datasources resource, closes #3755 --- pkg/api/dtos/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/dtos/models.go b/pkg/api/dtos/models.go index a7ff9353fa9..a5e8e74fb46 100644 --- a/pkg/api/dtos/models.go +++ b/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 {