Skip to content

Commit

Permalink
f (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
troytft committed Mar 17, 2022
1 parent f8f61c6 commit df732f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Services/OpenApi/SchemaGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private function createQueryParametersFromRequestModel(string $class): array
foreach ($requestModelSchema->properties as $propertyName => $propertySchema) {
$parameter = new OpenApi\Parameter([
'in' => 'query',
'name' => $propertyName,
'name' => $propertySchema->type === OpenApi\Type::ARRAY ? sprintf('%s[]', $propertyName) : $propertyName,
'required' => !$propertySchema->nullable,
'schema' => $propertySchema,
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
}
},
{
"name": "genres",
"name": "genres[]",
"in": "query",
"required": false,
"schema": {
Expand Down

0 comments on commit df732f6

Please sign in to comment.