kurko / ember-json-api

JSON API adapter for Ember Data.
MIT License
254 stars 62 forks source link

allow for null linkValue #47

Closed csantero closed 9 years ago

csantero commented 10 years ago

typeof null is 'object', so this line causes an error if linkValue is null.

cohitre commented 9 years ago

+1

from http://jsonapi.org/format/

A blank has-one relationship SHOULD be represented with a null value. For example, the following post has no author:

kurko commented 9 years ago

good catch!