From b05e587e5e63f2698a8f8055f7c8654bb5da0ab6 Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Wed, 17 Jan 2018 16:40:21 -0700 Subject: [PATCH] don't set omitempty for default value --- apis/management.cattle.io/v3/schema_types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apis/management.cattle.io/v3/schema_types.go b/apis/management.cattle.io/v3/schema_types.go index 46004b04..e4f88046 100644 --- a/apis/management.cattle.io/v3/schema_types.go +++ b/apis/management.cattle.io/v3/schema_types.go @@ -54,10 +54,10 @@ type Field struct { } type Values struct { - StringValue string `json:"stringValue,omitempty"` - IntValue int `json:"intValue,omitempty"` - BoolValue bool `json:"boolValue,omitempty"` - StringSliceValue []string `json:"stringSliceValue,omitempty"` + StringValue string `json:"stringValue"` + IntValue int `json:"intValue"` + BoolValue bool `json:"boolValue"` + StringSliceValue []string `json:"stringSliceValue"` } type Action struct {