You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using dashboard-api-go to call the method client.Appliance.GetDeviceAppliancePerformance(serial) I am getting the following error response. Error when calling `ApplianceApi.GetDeviceAppliancePerformance``: json: cannot unmarshal number 11.0 into Go struct field ResponseApplianceGetDeviceAppliancePerformance.perfScore of type int
Prerequisites
Describe the bug
When using dashboard-api-go to call the method client.Appliance.GetDeviceAppliancePerformance(serial) I am getting the following error response. Error when calling `ApplianceApi.GetDeviceAppliancePerformance``: json: cannot unmarshal number 11.0 into Go struct field ResponseApplianceGetDeviceAppliancePerformance.perfScore of type int
I attempted calling meraki api directly with curl and I do get a float response (and not an int)
https://developer.cisco.com/meraki/api-v1/get-device-appliance-performance/
The code seems to try to unmarshal a float into an int.
https://github.com/meraki/dashboard-api-go/blob/main/sdk/appliance.go#L2616C1-L2640C2
and
https://github.com/meraki/dashboard-api-go/blob/main/sdk/appliance.go#L89
Expected behavior
The api call should not error, a float value should be returned.
Screenshots
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: