From e9f117e24a32581bcdf23f2451c2aca792feaf92 Mon Sep 17 00:00:00 2001 From: Sam Woodard Date: Tue, 16 Oct 2018 07:33:57 -0700 Subject: [PATCH] fix logic error, break needs to be for loop not switch --- response.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/response.go b/response.go index bee7e8f..3f8ab73 100644 --- a/response.go +++ b/response.go @@ -270,6 +270,9 @@ func visitModelNode(model interface{}, included *map[string]*Node, // We had a JSON float (numeric), but our field was not one of the // allowed numeric types er = ErrBadJSONAPIID + } + + if er != nil { break }