From 827aeed925b4807c36b89cd021e4b7f53c845667 Mon Sep 17 00:00:00 2001 From: Phillip Kruger Date: Tue, 7 Sep 2021 20:57:13 +0200 Subject: [PATCH] Upgrade to SmallRye OpenAPI 2.1.12 Signed-off-by:Phillip Kruger --- bom/application/pom.xml | 2 +- .../smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 03bd07ed7a113..4b0ed2ce2a10a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -45,7 +45,7 @@ 2.4.4 3.1.1 3.0.1 - 2.1.10 + 2.1.12 1.3.2 2.0.1 5.2.1 diff --git a/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java b/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java index b8c40f5650d6d..12e0526b51802 100644 --- a/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java +++ b/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java @@ -672,7 +672,7 @@ private OpenAPI generateAnnotationModel(IndexView indexView, Capabilities capabi HttpRootPathBuildItem httpRootPathBuildItem, Optional resteasyJaxrsConfig) { Config config = ConfigProvider.getConfig(); - OpenApiConfig openApiConfig = new OpenApiConfigImpl(config); + OpenApiConfig openApiConfig = OpenApiConfigImpl.fromConfig(config); List extensions = new ArrayList<>(); @@ -685,6 +685,7 @@ private OpenAPI generateAnnotationModel(IndexView indexView, Capabilities capabi } } else if (capabilities.isPresent(Capability.RESTEASY_REACTIVE)) { extensions.add(new RESTEasyExtension(indexView)); + openApiConfig.doAllowNakedPathParameter(); Optional maybePath = config.getOptionalValue("quarkus.resteasy-reactive.path", String.class); if (maybePath.isPresent()) { defaultPath = maybePath.get();