From 533219d9f8efcb1a3af5e33056427b199c2e64e6 Mon Sep 17 00:00:00 2001 From: "Badr.NassLahsen" Date: Sat, 13 Aug 2022 20:37:32 +0200 Subject: [PATCH] Change report: #1789. --- .../springdoc/core/providers/SpringCloudFunctionProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java index 464c0acdb..5becc07e4 100644 --- a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java +++ b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java @@ -129,7 +129,7 @@ public List getRouterOperations(OpenAPI openAPI) { functionCatalog -> { Set names = functionCatalog.getNames(null); for (String name : names) { - if (!RoutingFunction.FUNCTION_NAME.equals(name)) { + if (!RoutingFunction.FUNCTION_NAME.equals(name) && applicationContext.containsBean(name)) { FunctionInvocationWrapper function = functionCatalog.lookup(name); if (function.isFunction()) { for (RequestMethod requestMethod : functionRequestMethods) {