Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ func unmarshalNode(data *Node, model reflect.Value, included *map[string]*Node)
}

if annotation == annotationPrimary {
if data.ID == "" {
continue
}

// Check the JSON API Type
if data.Type != args[1] {
er = fmt.Errorf(
Expand All @@ -168,6 +164,10 @@ func unmarshalNode(data *Node, model reflect.Value, included *map[string]*Node)
break
}

if data.ID == "" {
continue
}

// ID will have to be transmitted as astring per the JSON API spec
v := reflect.ValueOf(data.ID)

Expand Down