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
The spec for the /getDnsZone and /getDnsZones API calls say that they return JSON where the value for key "domain" is a string. However, these calls return a JSON object for the key "domain".
I ran into this problem when trying to use the go client library and this inconsistency with spec and implementation means that JSON parsing the response fails.
This issue can be reproduced with the following curl commands:
The spec for the
/getDnsZone
and/getDnsZones
API calls say that they return JSON where the value for key"domain"
is a string. However, these calls return a JSON object for the key"domain"
.I ran into this problem when trying to use the go client library and this inconsistency with spec and implementation means that JSON parsing the response fails.
This issue can be reproduced with the following
curl
commands:/getDnsZones
curl -H "Authorization: Bearer <personal_access_token>" https://api.netlify.com/api/v1/dns_zones/
/getDnsZone
The response I receive from these two API calls has the following type of JSON object for the
"domain"
key:The text was updated successfully, but these errors were encountered: