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

Merge URL and ID styles #185

Merged
merged 1 commit into from Feb 2, 2014
Merged

Merge URL and ID styles #185

merged 1 commit into from Feb 2, 2014

Conversation

dgeb
Copy link
Member

@dgeb dgeb commented Jan 30, 2014

@lgebhardt and I based this PR on our proposal from #183. By removing ambiguity around the links key in documents, we were able to merge the URL and ID styles of the spec. In the process of merging these styles, we also tried to clear up any inconsistencies in terminology (e.g. "document" vs. "resource") and layout. I hope we didn't mangle anything.

This is obviously a pretty substantial PR. If it would help, I could create a "convergence" branch on the main repo so we can all work on this together and accept additional PRs before merging to master (er, gh-pages).

Removes ambiguity around the `links` key in documents, which clears
path to merge the URL and ID styles of the spec.

This is discussed in detail in json-api#183.
@steveklabnik
Copy link
Contributor

People can submit PRs to your fork, and it works the same way.

* `id`
* `href`
* `links`
No other keys should be present at the top level of the JSON response.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a should, should it be a SHOULD?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. Perhaps it would be better to turn the phrasing around to emphasize the negative: "There SHOULD NOT be any other keys present at the top level of the JSON response."

@steveklabnik
Copy link
Contributor

Looks good to me. @wycats ?

wycats added a commit that referenced this pull request Feb 2, 2014
@wycats wycats merged commit 0759f00 into json-api:gh-pages Feb 2, 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.

None yet

4 participants