File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,14 @@ func ValidateQueryArray(
127
127
}
128
128
129
129
// check if the param is within an enum
130
- checkEnum := func (enumCheck , item string ) {
130
+ checkEnum := func (item string ) {
131
131
// check if the array param is within an enum
132
132
if sch .Items .IsA () {
133
133
itemsSch := sch .Items .A .Schema ()
134
134
if itemsSch .Enum != nil {
135
135
matchFound := false
136
136
for _ , enumVal := range itemsSch .Enum {
137
- if strings .TrimSpace (enumCheck ) == fmt .Sprint (enumVal .Value ) {
137
+ if strings .TrimSpace (item ) == fmt .Sprint (enumVal .Value ) {
138
138
matchFound = true
139
139
break
140
140
}
@@ -159,7 +159,7 @@ func ValidateQueryArray(
159
159
break
160
160
}
161
161
// will it blend?
162
- checkEnum (ef , item )
162
+ checkEnum (item )
163
163
164
164
case helpers .Boolean :
165
165
if _ , err := strconv .ParseBool (item ); err != nil {
@@ -180,7 +180,7 @@ func ValidateQueryArray(
180
180
case helpers .String :
181
181
182
182
// will it float?
183
- checkEnum (ef , item )
183
+ checkEnum (item )
184
184
}
185
185
}
186
186
}
You can’t perform that action at this time.
0 commit comments