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]>

(cherry picked from commit 827aeed)
  • Loading branch information
phillip-kruger authored and gsmet committed Nov 30, 2021
1 parent 762eba9 commit 83c608a
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 @@ -46,7 +46,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 @@ -493,7 +493,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 @@ -506,6 +506,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 83c608a

Please sign in to comment.