Skip to content

Commit c592fd0

Browse files
committed
Half fixed #36, will need a breaking change to fully fix
1 parent c371e2d commit c592fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qbclient/model.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ type Field struct {
2626

2727
// Advanced
2828
AutoFill bool `json:"doesDataCopy,omitempty" cliutil:"option=auto-fill"`
29-
Searchable bool `json:"findEnabled" cliutil:"option=searchable"` // Defaults to true, so we cannot omitempty.
30-
AddToNewReports bool `json:"appearsByDefault" cliutil:"option=add-to-reports"` // Defaults to true, so we cannot omitempty.
29+
Searchable bool `json:"findEnabled" cliutil:"option=searchable default=true func=boolstring"`
30+
AddToNewReports bool `json:"appearsByDefault" cliutil:"option=add-to-reports default=true func=boolstring"`
3131
FieldHelpText string `json:"fieldHelp,omitempty" cliutil:"option=help-text"`
3232
TrackField bool `json:"audited,omitempty" cliutil:"option=track-field"`
3333

0 commit comments

Comments
 (0)