Open mhl opened 9 years ago
I think this change in API behaviour must have been caused by https://github.com/mysociety/popit-api/commit/5b4555ea4eae8b9c7f6cfb02be49204ecc8b7921, but I'm not entirely sure I understand how the previous behaviour was occurring. I'll have to dig into this a bit more to understand what's happened and get a fix in place.
As an aside, the documentation only mentions the errors
property on responses, so this is at least as advertised, I guess :) http://popit.poplus.org/docs/api/reference/#errors
I have code that uses the PopIt API that I'm sure used to work along these lines:
... but which no longer works - the error content now looks like:
i.e. there's no
error
element (onlyerrors
), and there's nocode
element anywhere in the content. If I'm not completely losing it (quite possible) this is an unadvertised breaking API change