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
Endpoint /dna/intent/api/v1/wireless/profile returns empty empty object per profile detail, with attribute enableFabric="" (see below), which breaks go marshaling with the following error:
2024/02/22 10:13:20.887217 WARN RESTY json: cannot unmarshal string into Go struct field ResponseItemWirelessGetWirelessProfileProfileDetailsSSIDDetails.profileDetails.ssidDetails.enableFabric of type bool, Attempt 1
2024/02/22 10:13:20.887279 ERROR RESTY json: cannot unmarshal string into Go struct field ResponseItemWirelessGetWirelessProfileProfileDetailsSSIDDetails.profileDetails.ssidDetails.enableFabric of type bool
json: cannot unmarshal string into Go struct field ResponseItemWirelessGetWirelessProfileProfileDetailsSSIDDetails.profileDetails.ssidDetails.enableFabric of type bool
Postman example return value for endpoint (GET https://{{dnac}}/dna/intent/api/v1/wireless/profile)
Prerequisites
Describe the bug
Endpoint
/dna/intent/api/v1/wireless/profile
returns empty empty object per profile detail, with attributeenableFabric=""
(see below), which breaks go marshaling with the following error:output:
Postman example return value for endpoint (
GET https://{{dnac}}/dna/intent/api/v1/wireless/profile
)Expected behavior
I think that empty objects should be filtered out and not break the whole endpoint.
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: