Fix field string validators (#465)

This commit is contained in:
João Palet 2024-07-12 14:14:44 +01:00 committed by GitHub
parent a9c50fceab
commit e3da2ebbb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,8 +85,9 @@ func SupportedValuesDocumentation(values []string) string {
}
func quoteValues(values []string) []string {
quotedValues := make([]string, len(values))
for i, value := range values {
values[i] = fmt.Sprintf("`%s`", value)
quotedValues[i] = fmt.Sprintf("`%s`", value)
}
return values
return quotedValues
}