You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by zh...@apache.org on 2021/11/11 01:16:58 UTC

[apisix-ingress-controller] branch master updated: fix field tag omitempty (#723)

This is an automated email from the ASF dual-hosted git repository.

zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new da30386  fix field tag omitempty (#723)
da30386 is described below

commit da30386c9a4335a82723b46fe7b1342bf0f42867
Author: chen zhuo <ch...@126.com>
AuthorDate: Thu Nov 11 09:16:52 2021 +0800

    fix field tag omitempty (#723)
---
 pkg/kube/apisix/apis/config/v2alpha1/types.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/kube/apisix/apis/config/v2alpha1/types.go b/pkg/kube/apisix/apis/config/v2alpha1/types.go
index 2ef0c7f..facf42e 100644
--- a/pkg/kube/apisix/apis/config/v2alpha1/types.go
+++ b/pkg/kube/apisix/apis/config/v2alpha1/types.go
@@ -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.