From 998fd0e8cc53272161ab33749aea53fdb7040153 Mon Sep 17 00:00:00 2001 From: Nuno Borges Date: Tue, 2 May 2023 22:11:29 +0100 Subject: [PATCH] Issue #795: Add microprofile OpenAPI annotations for quarkus library in JaxRsSpec --- .../spec/libraries/quarkus/api.mustache | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/api.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/api.mustache index 5b2d8404730c..a865e321d74d 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/api.mustache @@ -6,14 +6,6 @@ package {{package}}; import {{javaxPackage}}.ws.rs.*; import {{javaxPackage}}.ws.rs.core.Response; -{{#useGzipFeature}} -import org.jboss.resteasy.annotations.GZIP; -{{/useGzipFeature}} - -{{#useSwaggerAnnotations}} -import io.swagger.annotations.*; -{{/useSwaggerAnnotations}} - {{#useMicroProfileOpenAPIAnnotations}} import org.eclipse.microprofile.openapi.annotations.*; import org.eclipse.microprofile.openapi.annotations.info.*; @@ -22,8 +14,17 @@ import org.eclipse.microprofile.openapi.annotations.tags.*; import org.eclipse.microprofile.openapi.annotations.responses.*; import org.eclipse.microprofile.openapi.annotations.media.*; import org.eclipse.microprofile.openapi.annotations.enums.*; +import org.eclipse.microprofile.openapi.annotations.headers.*; {{/useMicroProfileOpenAPIAnnotations}} +{{#useGzipFeature}} +import org.jboss.resteasy.annotations.GZIP; +{{/useGzipFeature}} + +{{#useSwaggerAnnotations}} +import io.swagger.annotations.*; +{{/useSwaggerAnnotations}} + {{#supportAsync}} import java.util.concurrent.CompletionStage; import java.util.concurrent.CompletableFuture;