Skip to content

Commit d71ef7b

Browse files
committed
lol
1 parent 24bdf1b commit d71ef7b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

codersdk/deploymentconfig.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,24 @@ func (f *DeploymentConfigField[T]) MarshalJSON() ([]byte, error) {
130130
return json.Marshal(f)
131131
}
132132

133-
return json.Marshal(DeploymentConfigField[T]{
133+
type SafeField[T Flaggable] struct {
134+
Name string `json:"name"`
135+
Usage string `json:"usage"`
136+
Flag string `json:"flag"`
137+
Shorthand string `json:"shorthand"`
138+
Enterprise bool `json:"enterprise"`
139+
Hidden bool `json:"hidden"`
140+
Secret bool `json:"secret"`
141+
}
142+
143+
return json.Marshal(SafeField[T]{
134144
Name: f.Name,
135145
Usage: f.Usage,
136146
Flag: f.Flag,
137147
Shorthand: f.Shorthand,
138148
Enterprise: f.Enterprise,
139149
Hidden: f.Hidden,
140150
Secret: f.Secret,
141-
Default: f.Default,
142151
})
143152
}
144153

0 commit comments

Comments
 (0)