We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063eaf8 commit d827fe8Copy full SHA for d827fe8
pkg/crd/gen.go
@@ -209,6 +209,8 @@ func removeDefaultsFromSchemaProps(v *apiextlegacy.JSONSchemaProps) {
209
// nil-out the default field
210
v.Default = nil
211
for name, prop := range v.Properties {
212
+ // iter var reference is fine -- we handle the persistence of the modfications on the line below
213
+ //nolint:gosec
214
removeDefaultsFromSchemaProps(&prop)
215
v.Properties[name] = prop
216
}
0 commit comments