Fix field string validators (#465)
This commit is contained in:
parent
a9c50fceab
commit
e3da2ebbb4
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue