Skip to content

Commit

Permalink
fix(openapi): merge parameters with deprecated openApiContext (#5703)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttskch authored Aug 2, 2023
1 parent e692071 commit 146991b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OpenApi/Factory/OpenApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ private function collectPaths(ApiResource $resource, ResourceMetadataCollection
'externalDocs' => new ExternalDocumentation(description: $value['description'] ?? '', url: $value['url'] ?? ''),
'requestBody' => new RequestBody(description: $value['description'] ?? '', content: isset($value['content']) ? new \ArrayObject($value['content'] ?? []) : null, required: $value['required'] ?? false),
'callbacks' => new \ArrayObject($value ?? []),
'parameters' => $openapiOperation->getParameters(),
default => $value,
};

Expand Down

0 comments on commit 146991b

Please sign in to comment.