Skip to content

Commit

Permalink
Upgrade to SmallRye OpenAPI 2.1.12
Browse files Browse the repository at this point in the history
Signed-off-by:Phillip Kruger <[email protected]>
  • Loading branch information
phillip-kruger committed Sep 7, 2021
1 parent a7f37cf commit 827aeed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<smallrye-config.version>2.4.4</smallrye-config.version>
<smallrye-health.version>3.1.1</smallrye-health.version>
<smallrye-metrics.version>3.0.1</smallrye-metrics.version>
<smallrye-open-api.version>2.1.10</smallrye-open-api.version>
<smallrye-open-api.version>2.1.12</smallrye-open-api.version>
<smallrye-graphql.version>1.3.2</smallrye-graphql.version>
<smallrye-opentracing.version>2.0.1</smallrye-opentracing.version>
<smallrye-fault-tolerance.version>5.2.1</smallrye-fault-tolerance.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ private OpenAPI generateAnnotationModel(IndexView indexView, Capabilities capabi
HttpRootPathBuildItem httpRootPathBuildItem,
Optional<ResteasyJaxrsConfigBuildItem> resteasyJaxrsConfig) {
Config config = ConfigProvider.getConfig();
OpenApiConfig openApiConfig = new OpenApiConfigImpl(config);
OpenApiConfig openApiConfig = OpenApiConfigImpl.fromConfig(config);

List<AnnotationScannerExtension> extensions = new ArrayList<>();

Expand All @@ -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<String> maybePath = config.getOptionalValue("quarkus.resteasy-reactive.path", String.class);
if (maybePath.isPresent()) {
defaultPath = maybePath.get();
Expand Down

0 comments on commit 827aeed

Please sign in to comment.