Skip to content

Commit ec62e66

Browse files
committed
fix file doc examples
1 parent 4c54aee commit ec62e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language/Dart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function getParamExample(array $param)
208208
if(empty($example) && $example !== 0 && $example !== false) {
209209
switch ($type) {
210210
case self::TYPE_FILE:
211-
$output .= 'await MultipartFile.fromPath(\'<field-name>\', \'./path-to-files/image.jpg\', \'image.jpg\')';
211+
$output .= 'await MultipartFile.fromPath(\''.$param['name'].'\', \'./path-to-files/image.jpg\', \'image.jpg\')';
212212
break;
213213
case self::TYPE_NUMBER:
214214
case self::TYPE_INTEGER:

0 commit comments

Comments
 (0)