config: remove hard cap on macro length (#718)

Remove macro value limit of 1024 characters
This commit is contained in:
Quentin Machu
2026-04-28 16:32:54 -04:00
committed by GitHub
parent 5bae33a769
commit a846c4f18c
-3
View File
@@ -646,9 +646,6 @@ func validateMacro(name string, value any) error {
// Validate that value is a scalar type
switch v := value.(type) {
case string:
if len(v) >= 1024 {
return fmt.Errorf("macro value for '%s' exceeds maximum length of 1024 characters", name)
}
// Check for self-reference
macroSlug := fmt.Sprintf("${%s}", name)
if strings.Contains(v, macroSlug) {