Closed jolestar closed 7 years ago
用户反馈:
https://docs.qingcloud.com/api/router/describe_router_vxnets.html
return ResponseItemType 里面 features 是 string
但是下面 Example Response 里面返回时 integer 使用 https://github.com/yunify/qingcloud-sdk-go 的时候出现了这样的错误
json: cannot unmarshal number into Go struct field RouterVxNet.features of type string
sdk 里面 RouterVxNet.Featue 是 string
type RouterVxNet struct { CreateTime *time.Time `json:"create_time" name:"create_time" format:"ISO 8601"` DYNIPEnd *string `json:"dyn_ip_end" name:"dyn_ip_end"` DYNIPStart *string `json:"dyn_ip_start" name:"dyn_ip_start"` Features *string `json:"features" name:"features"` IPNetwork *string `json:"ip_network" name:"ip_network"` ManagerIP *string `json:"manager_ip" name:"manager_ip"` RouterID *string `json:"router_id" name:"router_id"` VxNetID *string `json:"vxnet_id" name:"vxnet_id"` }
{ "action": "DescribeRouterVxnetsResponse", "total_count": 2, "router_vxnet_set": [ { "router_id": "rtr-6aj7yz0k", "manager_ip": "172.19.3.1", "ip_network": "172.19.3.0/24", "dyn_ip_end": "172.19.3.254", "vxnet_id": "vxnet-h7qdcdn", "dyn_ip_start": "172.19.3.2", "vxnet_name": "net stage k8s", "create_time": "2017-03-14T06:53:35Z", "owner": "usr-dD0cnWpH", "features": 1 }, { "router_id": "rtr-86b3fwxh", "manager_ip": "172.19.2.1", "ip_network": "172.19.2.0/24", "dyn_ip_end": "172.19.2.254", "vxnet_id": "vxnet-dbq8qtp", "dyn_ip_start": "172.19.2.2", "vxnet_name": "net stage db", "create_time": "2017-03-14T06:53:36Z", "owner": "usr-dD0cnWpH", "features": 1 } ], "ret_code": 0 }
是 API 的文档错了,稍后会修复一下
Closed for https://github.com/yunify/qingcloud-sdk-go/pull/10 merged.
用户反馈:
https://docs.qingcloud.com/api/router/describe_router_vxnets.html
return ResponseItemType 里面 features 是 string
但是下面 Example Response 里面返回时 integer 使用 https://github.com/yunify/qingcloud-sdk-go 的时候出现了这样的错误
json: cannot unmarshal number into Go struct field RouterVxNet.features of type string
sdk 里面 RouterVxNet.Featue 是 string