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

Add support for empty to-one relationship according to JSON API v1.0 #33

Merged
merged 3 commits into from
Jan 12, 2016
Merged

Add support for empty to-one relationship according to JSON API v1.0 #33

merged 3 commits into from
Jan 12, 2016

Conversation

RafaelKayumov
Copy link
Contributor

Example from spec here: http://jsonapi.org/format/#fetching-relationships-responses

Tests also added


NewsFeedPostResource *testPost = jsonAPI.resource;

XCTAssertNil(testPost.publisher, @"Test post's attachments should not be nil");
Copy link
Contributor

Choose a reason for hiding this comment

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

Small copy-and-paste error: the description should read Test post's publisher should be nil.

@jkrumow
Copy link
Contributor

jkrumow commented Jan 3, 2016

Looks good and useful to me. I think we should include it.

@RafaelKayumov
Copy link
Contributor Author

@joshdholtz ping

@joshdholtz
Copy link
Owner

@RafaelKayumov Thanks for the ping 😊 Merging and stuff

joshdholtz pushed a commit that referenced this pull request Jan 12, 2016
Add support for empty to-one relationship according to JSON API v1.0
@joshdholtz joshdholtz merged commit 6f88bb6 into joshdholtz:master Jan 12, 2016
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.

3 participants