From 1f3f1810cd75c978c67422aa9561a50773ccb584 Mon Sep 17 00:00:00 2001 From: Emad Shaaban Date: Thu, 7 Aug 2025 15:13:45 +0300 Subject: [PATCH] [FIX] base_rest_auth_api_key: fix method security plugin --- base_rest_auth_api_key/apispec/rest_method_security_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_rest_auth_api_key/apispec/rest_method_security_plugin.py b/base_rest_auth_api_key/apispec/rest_method_security_plugin.py index 5c56d6cfe..4efdca41c 100644 --- a/base_rest_auth_api_key/apispec/rest_method_security_plugin.py +++ b/base_rest_auth_api_key/apispec/rest_method_security_plugin.py @@ -18,7 +18,7 @@ def init_spec(self, spec): spec.components.security_scheme("api_key", api_key_scheme) def operation_helper(self, path=None, operations=None, **kwargs): - routing = kwargs.get("routing") + routing = kwargs.get("original_routing") if not routing: super().operation_helper(path, operations, **kwargs) if not operations: