diff --git a/RouteDescriber/RouteMetadataDescriber.php b/RouteDescriber/RouteMetadataDescriber.php index 8dc5b3a..80dd7b8 100644 --- a/RouteDescriber/RouteMetadataDescriber.php +++ b/RouteDescriber/RouteMetadataDescriber.php @@ -26,8 +26,6 @@ final class RouteMetadataDescriber implements RouteDescriberInterface public function describe(OA\OpenApi $api, Route $route, \ReflectionMethod $reflectionMethod) { foreach ($this->getOperations($api, $route) as $operation) { - Util::merge($operation, ['security' => $route->getSchemes()]); - $requirements = $route->getRequirements(); $compiledRoute = $route->compile(); $existingParams = $this->getRefParams($api, $operation); diff --git a/Tests/Functional/FunctionalTest.php b/Tests/Functional/FunctionalTest.php index 9c5bfbc..592598c 100644 --- a/Tests/Functional/FunctionalTest.php +++ b/Tests/Functional/FunctionalTest.php @@ -110,7 +110,7 @@ class FunctionalTest extends WebTestCase { $operation = $this->getOperation('/api/test/{user}', 'get'); - $this->assertEquals(['https'], $operation->security); + $this->assertEquals(OA\UNDEFINED, $operation->security); $this->assertEquals(OA\UNDEFINED, $operation->summary); $this->assertEquals(OA\UNDEFINED, $operation->description); $this->assertEquals(OA\UNDEFINED, $operation->deprecated);