Skip to content

Commit

Permalink
sample codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng committed Oct 20, 2022
1 parent f525ca7 commit 84afde7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 24 deletions.
7 changes: 7 additions & 0 deletions unifi/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import (
"strings"
)

func emptyBoolToTrue(b *bool) bool {
if b == nil {
return true
}
return *b
}

// numberOrString handles strings that can also accept JSON numbers.
// For example a field may contain a number or the string "auto".
type numberOrString string
Expand Down
52 changes: 28 additions & 24 deletions unifi/network.generated.go

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

0 comments on commit 84afde7

Please sign in to comment.