Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json: cannot unmarshal string into Go struct field ErrorResponse.errors of type []string #185

Open
gnuletik opened this issue Jan 3, 2025 · 0 comments

Comments

@gnuletik
Copy link

gnuletik commented Jan 3, 2025

When calling the RegisterDomain function, I faced the following error:

json: cannot unmarshal string into Go struct field ErrorResponse.errors of type []string

It seems that the type for ErrorResponse.AttributeErrors should be a map[string]string instead of the current map[string][]string.

Even though the documentation states that the current type is valid: https://developer.dnsimple.com/v2/#errors
So, that's possibly an API error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant