fix logic error, break needs to be for loop not switch

This commit is contained in:
Sam Woodard 2018-10-16 07:33:57 -07:00
parent 6bf44faa3c
commit e9f117e24a
1 changed files with 3 additions and 0 deletions

View File

@ -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
}