-
Notifications
You must be signed in to change notification settings - Fork 211
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
UnmarshalPayload for errors? #140
Comments
I have this problem as well :( |
thilonel
added a commit
to thilonel/jsonapi
that referenced
this issue
Jul 3, 2019
@tisba @chriswalz I have submitted a PR. If you take a look at it you'll see how to do this yourself - it's quite simple - yet I think it'd be nice if they merged it. |
Any word on this getting merged in? |
Still no update on this PR? In the meanwhile has everyone added their own wrappers to unmarshal error? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to figure out how I am supposed to use jsonapi to unmarshal an error response I got from my API:
I first tried
but this does not work, because
jsonapi.UnmarshalPayload
does expect adata
attribute (https://github.com/google/jsonapi/blob/master/request.go#L71). At this point I got lost and I'm not sure how this is supposed to be used...The text was updated successfully, but these errors were encountered: