Skip to content

Commit

Permalink
Always send schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng committed Oct 23, 2022
1 parent 887fae8 commit 0552712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions fields/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion unifi/wlan.generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0552712

Please sign in to comment.