Moved handling of string response to int using the existing emptyStringInt method as part of UnmarshalJSON as per Pauls suggestion
This commit is contained in:
@@ -260,14 +260,6 @@ func main() {
|
||||
f.OmitEmpty = true
|
||||
return nil
|
||||
}
|
||||
case "NetworkConf":
|
||||
resource.FieldProcessor = func(name string, f *FieldInfo) error {
|
||||
switch name {
|
||||
case "WANEgressQOS":
|
||||
f.FieldType = "string"
|
||||
}
|
||||
return nil
|
||||
}
|
||||
case "SettingUsg":
|
||||
resource.FieldProcessor = func(name string, f *FieldInfo) error {
|
||||
if strings.HasSuffix(name, "Timeout") && name != "ArpCacheTimeout" {
|
||||
|
||||
Reference in New Issue
Block a user