Always send schedule

This commit is contained in:
Paul Tyng
2022-10-22 21:00:33 -04:00
parent 887fae8168
commit 0552712b3b
2 changed files with 10 additions and 1 deletions

View File

@@ -403,6 +403,15 @@ func main() {
}
return nil
}
case "WLAN":
resource.FieldProcessor = func(name string, f *FieldInfo) error {
switch name {
case "ScheduleWithDuration":
// always send schedule, so we can empty it if we want to
f.OmitEmpty = false
}
return nil
}
}
err = resource.processJSON(b)