We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can't seem to be able to do the following:
var data = []byte(`{ "data": { "attributes": { "values": ["abc"] }, "type": "things" } }`) type Thing struct { ID string `jsonapi:"primary,things"` Values json.RawMessage `jsonapi:"attr,values"` } var thing Thing r := bytes.NewReader(data) if err := jsonapi.UnmarshalPayload(r, &thing); err != nil { panic(err) }
I get panic: data is not a jsonapi representation of '*main.Thing'
panic: data is not a jsonapi representation of '*main.Thing'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I can't seem to be able to do the following:
I get
panic: data is not a jsonapi representation of '*main.Thing'
The text was updated successfully, but these errors were encountered: