handle boolean pointers in config linter

This commit is contained in:
Paul Wells
2025-09-24 15:16:18 -07:00
parent bfba6feed4
commit e9b6d9f5e0
+5 -1
View File
@@ -36,7 +36,11 @@ func checkYAMLTags(t reflect.Type, seen map[reflect.Type]struct{}) error {
continue
}
if field.Type.Kind() == reflect.Bool {
typ := field.Type
if field.Type.Kind() == reflect.Pointer {
typ = field.Type.Elem()
}
if typ.Kind() == reflect.Bool {
// ignore boolean fields
continue
}