diff --git a/OpenApi/OpenApiFactory.php b/OpenApi/OpenApiFactory.php index 753afc60..c9207639 100644 --- a/OpenApi/OpenApiFactory.php +++ b/OpenApi/OpenApiFactory.php @@ -91,6 +91,7 @@ public function __invoke(array $context = []): OpenApi ])) ->withRequired(true) ) + ->withSecurity([]) )); return $openApi; diff --git a/Tests/Functional/Command/ApiPlatformOpenApiExportCommandTest.php b/Tests/Functional/Command/ApiPlatformOpenApiExportCommandTest.php index b6fdedec..b0b6f786 100644 --- a/Tests/Functional/Command/ApiPlatformOpenApiExportCommandTest.php +++ b/Tests/Functional/Command/ApiPlatformOpenApiExportCommandTest.php @@ -106,7 +106,8 @@ public function testCheckOpenApiExportCommand() "description": "Creates a user token.", "tags": [ "Login Check" - ] + ], + "security": [] }, "parameters": [] }