Skip to content

Commit

Permalink
Update PathDescriber.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan authored Oct 21, 2024
1 parent c71bcd8 commit e299af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Generator/PathDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,9 @@ public function generateSchemaForParameter(
}

$parameter = new Parameter([
'name' => $pathParameter->getName(),
'name' => ($schema !== null && $schema->type === 'array')
? $pathParameter->getName() . '[]'
: $pathParameter->getName(),
'in' => 'query',
'description' => $description,
'schema' => $schema,
Expand Down

0 comments on commit e299af4

Please sign in to comment.