diff --git a/codegen/customizations.yml b/codegen/customizations.yml index 72c9d36..f8d66b2 100644 --- a/codegen/customizations.yml +++ b/codegen/customizations.yml @@ -489,10 +489,6 @@ customizations: fields: _all: omitEmpty: false - SettingNtp: - fields: - _all: - omitEmpty: false SettingRsyslogd: fields: Contents: diff --git a/unifi/setting_ntp.generated.go b/unifi/setting_ntp.generated.go index 3c9ce4a..fcbd430 100644 --- a/unifi/setting_ntp.generated.go +++ b/unifi/setting_ntp.generated.go @@ -29,11 +29,11 @@ type SettingNtp struct { Key string `json:"key"` - NtpServer1 string `json:"ntp_server_1"` - NtpServer2 string `json:"ntp_server_2"` - NtpServer3 string `json:"ntp_server_3"` - NtpServer4 string `json:"ntp_server_4"` - SettingPreference string `json:"setting_preference" validate:"omitempty,oneof=auto manual"` // auto|manual + NtpServer1 string `json:"ntp_server_1,omitempty"` + NtpServer2 string `json:"ntp_server_2,omitempty"` + NtpServer3 string `json:"ntp_server_3,omitempty"` + NtpServer4 string `json:"ntp_server_4,omitempty"` + SettingPreference string `json:"setting_preference,omitempty" validate:"omitempty,oneof=auto manual"` // auto|manual } func (dst *SettingNtp) UnmarshalJSON(b []byte) error {