Skip to content

Commit

Permalink
fix unmarshal apisix/upstream field nodes be null (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
chzhuo authored Oct 27, 2021
1 parent 2a73216 commit dc196ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/types/apisix/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (n *UpstreamNodes) UnmarshalJSON(p []byte) error {
if len(p) != 2 {
return errors.New("unexpected non-empty object")
}
*n = UpstreamNodes{}
return nil
}
var data []UpstreamNode
Expand Down

0 comments on commit dc196ef

Please sign in to comment.