Skip to content

Commit 38a0b63

Browse files
authored
fix: Collection with formdata malformed for API (#926)
1 parent fcc0f5c commit 38a0b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Writing/PostmanCollectionWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected function getFormDataParams(array $paramsKeyValue, ?string $key = null,
222222
if (!is_array($value)) {
223223
$body[] = [
224224
'key' => $index,
225-
'value' => $value,
225+
'value' => (string) $value,
226226
'type' => 'text',
227227
'description' => $paramsFullDetails[$index]->description ?? '',
228228
];

0 commit comments

Comments
 (0)