Skip to content

Commit

Permalink
fix field tag omitempty (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
chzhuo committed Nov 11, 2021
1 parent 7063189 commit da30386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kube/apisix/apis/config/v2alpha1/types.go
Expand Up @@ -143,12 +143,12 @@ type ApisixRouteHTTPMatchExpr struct {
Op string `json:"op" yaml:"op"`
// Set is an array type object of the expression.
// It should be used when the Op is "in" or "not_in";
Set []string `json:"set" yaml:"set"`
Set []string `json:"set,omitempty" yaml:"set,omitempty"`
// Value is the normal type object for the expression,
// it should be used when the Op is not "in" and "not_in".
// Set and Value are exclusive so only of them can be set
// in the same time.
Value *string `json:"value" yaml:"value"`
Value *string `json:"value,omitempty" yaml:"value,omitempty"`
}

// ApisixRouteHTTPMatchExprSubject describes the route match expression subject.
Expand Down

0 comments on commit da30386

Please sign in to comment.