-
Notifications
You must be signed in to change notification settings - Fork 93
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
relationships links ignoring GetCustomLinks #354
Comments
As soon as the interface is implemented, the links object will be marshalled - but it doesn't have to be that way - feel free to open a PR to change that behaviour! Line 251 in 95b4fb8
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to exclude or customize the
links
object from a relationship? I've been trying to do figure this out without any luck.Some context:
I have some resource types I want to include links for, and other resource types I do not. So I'm using
jsonapi.MarshalWithURLs
and then using aGetCustomLinks
method to return an empty map for the resources that should not have links.This is working for the
included
part of the marshaled payload. However, the links are still included in therelationships
part of the payload. What's returned byGetCustomLinks
does not appear to impact the link values in therelationships
object.Which is resulting in the following 2 problems:
The text was updated successfully, but these errors were encountered: