@@ -523,7 +523,8 @@ export const validateParam = (param, value, { isOAS3 = false, bypassRequiredChec
523523 // These checks should evaluate to true if there is a parameter
524524 let stringCheck = type === "string" && value
525525 let arrayCheck = type === "array" && Array . isArray ( value ) && value . length
526- let listCheck = type === "array" && Im . List . isList ( value ) && value . count ( )
526+ let arrayListCheck = type === "array" && Im . List . isList ( value ) && value . count ( )
527+ let arrayStringCheck = type === "array" && typeof value === "string" && value
527528 let fileCheck = type === "file" && value instanceof win . File
528529 let booleanCheck = type === "boolean" && ( value || value === false )
529530 let numberCheck = type === "number" && ( value || value === 0 )
@@ -543,8 +544,8 @@ export const validateParam = (param, value, { isOAS3 = false, bypassRequiredChec
543544 // }
544545
545546 const allChecks = [
546- stringCheck , arrayCheck , listCheck , fileCheck , booleanCheck ,
547- numberCheck , integerCheck , objectCheck , objectStringCheck ,
547+ stringCheck , arrayCheck , arrayListCheck , arrayStringCheck , fileCheck ,
548+ booleanCheck , numberCheck , integerCheck , objectCheck , objectStringCheck ,
548549 ]
549550
550551 const passedAnyCheck = allChecks . some ( v => ! ! v )
@@ -605,7 +606,7 @@ export const validateParam = (param, value, { isOAS3 = false, bypassRequiredChec
605606 } else if ( type === "array" ) {
606607 let itemType
607608
608- if ( ! listCheck || ! value . count ( ) ) { return errors }
609+ if ( ! arrayListCheck || ! value . count ( ) ) { return errors }
609610
610611 itemType = paramDetails . getIn ( [ "items" , "type" ] )
611612
0 commit comments