mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-02-23 09:22:04 +00:00
chore: forgot to stage everything
This commit is contained in:
@@ -68,6 +68,14 @@ func buildPath(field reflect.StructField, fieldValue reflect.Value, parent strin
|
||||
Description: desc,
|
||||
Value: defaultValue,
|
||||
}
|
||||
if fieldValue.Kind() == reflect.Slice {
|
||||
sl, ok := defaultValue.([]string)
|
||||
if !ok {
|
||||
slog.Error("invalid default value", "value", defaultValue)
|
||||
return
|
||||
}
|
||||
path.Value = strings.Join(sl, ",")
|
||||
}
|
||||
*paths = append(*paths, path)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user