Skip to content

Commit 0e69ab1

Browse files
committed
nullable in body properties
1 parent fc3840c commit 0e69ab1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Spec/Swagger2.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ public function getMethods($service)
251251
$param['required'] = (in_array($key, $bodyRequired));
252252
$param['example'] = $value['x-example'] ?? null;
253253
$param['isUploadID'] = $value['x-upload-id'] ?? false;
254+
$param['nullable'] = $value['x-nullable'] ?? false;
254255
$param['array'] = [
255256
'type' => $value['items']['type'] ?? '',
256257
];

0 commit comments

Comments
 (0)