dnsimple-go icon indicating copy to clipboard operation
dnsimple-go copied to clipboard

Expose specific model errors on validation error

Open sbastn opened this issue 7 years ago • 3 comments

We currently don't expose model-specific errors (the content of the "errors" payload) when a 400 error message is returned in case of a validation failure (e.g. on create).

It would be helpful to include these errors as well to help identifying the issue. https://github.com/dnsimple/dnsimple-go/blob/2419a4c846d40f8909f6faaac6e81cfd7655aebd/dnsimple/dnsimple.go#L276-L281

sbastn avatar Aug 27 '17 17:08 sbastn

+1 It took me an unhealthy amount of time to figure out I had to put a "+" symbol in the phone number / fax string to create a contact. Documentation doesn't even mention this as a requirement.

randallmlough avatar Mar 11 '19 23:03 randallmlough

Sorry about that @randallmlough. We'll see if we can prioritize the work. Feel free to provide a PR if you have something ready.

weppos avatar Mar 12 '19 09:03 weppos

Related to https://github.com/dnsimple/dnsimple-developer/issues/133

weppos avatar Apr 28 '20 16:04 weppos