Skip to content

Commit 530ca3b

Browse files
committed
use type bool
1 parent 5015554 commit 530ca3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language/Python.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function getFilters(): array
400400
return $this->getTypeName($value, $method);
401401
}),
402402
new TwigFilter('formatParamValue', function (string $paramName, string $paramType, bool $isMultipartFormData) {
403-
if ($isMultipartFormData && $paramType !== self::TYPE_STRING && $paramType !== self::TYPE_ARRAY) {
403+
if ($isMultipartFormData && $paramType === self::TYPE_BOOLEAN) {
404404
return "str({$paramName}).lower() if type({$paramName}) is bool else {$paramName}";
405405
}
406406
return $paramName;

0 commit comments

Comments
 (0)