-
Notifications
You must be signed in to change notification settings - Fork 3
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
What do you think about allowing the server to force a link to be an array #7
Comments
Looks interesting. However, I'm not a fond of receiving boolean parameters for this kind of thing. On something like How about, for example, Since you have a fork of my repo, you can implement it there and pretty easily created a pull request with the changes from your repo to mine. If you do that, naturally, add some unit tests to it. |
Now that I'm looking at it again, maybe if you do |
I updated the PR to do that ☝️ |
(just realized that's what you were talking about in your initial comment...) |
I updated #8 and tightened / cleaned it up - see what you guys think. |
For example - when you have a link relation that is sometimes an array, and sometimes a single link - it can confuse clients to have to figure out when it is and when it isn't. I have built the code to support a 3rd argument to the Resource.link method which is an optional boolean value to indicate forcing an array. If you think it's useful I'll send a pull request.
Here's my work: chadkouse@8e206c3
Thanks
The text was updated successfully, but these errors were encountered: