Skip to content
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

Don't add invalid link relations to HAL output #8

Merged
merged 1 commit into from
Jan 26, 2014

Conversation

shekibobo
Copy link
Contributor

HAL spec says that the href property of a link relation is
required. Certain parsers, thus, will break if a nil href is
included in the spec. This PR simply checks to make sure these
don't show up in the JSON output if the link you pass in happens
to be nil.

HAL spec says that the href property of a link relation is
required. Certain parsers, thus, will break if a nil href is
included in the spec. This PR simply checks to make sure these
don't show up in the JSON output if the link you pass in happens
to be nil.
ismasan pushed a commit that referenced this pull request Jan 26, 2014
Don't add invalid link relations to HAL output
@ismasan ismasan merged commit d4433b5 into ismasan:master Jan 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants