This is an automated email from the ASF dual-hosted git repository.

baoyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new e8bc9b940 fix: upstream discovery args metadata field caused crash. 
(#2832)
e8bc9b940 is described below

commit e8bc9b94037a1d71728d4fb1f3c2e615485b69e3
Author: Tsui Jie <[email protected]>
AuthorDate: Mon Aug 7 09:10:36 2023 +0800

    fix: upstream discovery args metadata field caused crash. (#2832)
---
 api/internal/core/entity/entity.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/internal/core/entity/entity.go 
b/api/internal/core/entity/entity.go
index b8de0a9e0..c061f4703 100644
--- a/api/internal/core/entity/entity.go
+++ b/api/internal/core/entity/entity.go
@@ -171,7 +171,7 @@ type UpstreamDef struct {
        Key           string                 `json:"key,omitempty"`
        Scheme        string                 `json:"scheme,omitempty"`
        DiscoveryType string                 `json:"discovery_type,omitempty"`
-       DiscoveryArgs map[string]string      `json:"discovery_args,omitempty"`
+       DiscoveryArgs map[string]interface{} `json:"discovery_args,omitempty"`
        PassHost      string                 `json:"pass_host,omitempty"`
        UpstreamHost  string                 `json:"upstream_host,omitempty"`
        Name          string                 `json:"name,omitempty"`

Reply via email to