fix wrong json tag (#2193)
json tags are case sensitive when encode, change omitEmpty to omitempty
This commit is contained in:
parent
36cce00fdd
commit
ebcdfade8e
3 changed files with 10 additions and 10 deletions
|
|
@ -32,7 +32,7 @@ import (
|
|||
|
||||
// SourceRange returns the CIDR
|
||||
type SourceRange struct {
|
||||
CIDR []string `json:"cidr,omitEmpty"`
|
||||
CIDR []string `json:"cidr,omitempty"`
|
||||
}
|
||||
|
||||
// Equal tests for equality between two SourceRange types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue