fix: revert allowed empty fields for NTP servers
This commit is contained in:
@@ -489,10 +489,6 @@ customizations:
|
|||||||
fields:
|
fields:
|
||||||
_all:
|
_all:
|
||||||
omitEmpty: false
|
omitEmpty: false
|
||||||
SettingNtp:
|
|
||||||
fields:
|
|
||||||
_all:
|
|
||||||
omitEmpty: false
|
|
||||||
SettingRsyslogd:
|
SettingRsyslogd:
|
||||||
fields:
|
fields:
|
||||||
Contents:
|
Contents:
|
||||||
|
|||||||
10
unifi/setting_ntp.generated.go
generated
10
unifi/setting_ntp.generated.go
generated
@@ -29,11 +29,11 @@ type SettingNtp struct {
|
|||||||
|
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
|
|
||||||
NtpServer1 string `json:"ntp_server_1"`
|
NtpServer1 string `json:"ntp_server_1,omitempty"`
|
||||||
NtpServer2 string `json:"ntp_server_2"`
|
NtpServer2 string `json:"ntp_server_2,omitempty"`
|
||||||
NtpServer3 string `json:"ntp_server_3"`
|
NtpServer3 string `json:"ntp_server_3,omitempty"`
|
||||||
NtpServer4 string `json:"ntp_server_4"`
|
NtpServer4 string `json:"ntp_server_4,omitempty"`
|
||||||
SettingPreference string `json:"setting_preference" validate:"omitempty,oneof=auto manual"` // auto|manual
|
SettingPreference string `json:"setting_preference,omitempty" validate:"omitempty,oneof=auto manual"` // auto|manual
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dst *SettingNtp) UnmarshalJSON(b []byte) error {
|
func (dst *SettingNtp) UnmarshalJSON(b []byte) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user