Skip to content

Commit

Permalink
Fix #246
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jun 18, 2021
1 parent 1d131b2 commit a5f5171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Writing/OpenAPISpecWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public function generateFieldData($field): array
? $this->generateFieldData([
'name' => '',
'type' => $baseType,
'value' => ($field->example ?: [null])[0],
'example' => ($field->example ?: [null])[0],
])
: ['type' => $baseType],
];
Expand Down

0 comments on commit a5f5171

Please sign in to comment.