sample codegen

This commit is contained in:
Paul Tyng
2022-10-19 17:25:29 -04:00
parent f525ca7975
commit 84afde7dce
2 changed files with 35 additions and 24 deletions

View File

@@ -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