You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2bff88f
Browse filesBrowse the repository at this point in the historyBrowse files
[jaxrs-spec][quarkus] Migrate the Jakarta path to Quarkus REST
The quarkus library generated for RESTEasy Classic (quarkus-resteasy), while
current Quarkus defaults to Quarkus REST. Two consequences are fixed here.
File form parameters were bound to InputStream, which Quarkus REST does not
support as a multipart type. And a `type: array` of `format: binary` properties
was collapsed onto that scalar, so a multi-file upload was generated with the
same signature as a single-file one and only one file could ever be bound.
Under useJakartaEe=true the generated project now depends on quarkus-rest and
binds file form parameters to the RESTEasy Reactive multipart types:
`@RestForm FileUpload`, or `@RestForm List<FileUpload>` when the property is an
array, which is the binding Quarkus REST provides for several files sharing one
part name. The platform moves to 3.27.4.1 (oldest supported LTS) and the BOM to
quarkus-bom, since quarkus-universe-bom was discontinued after 3.0.1 and
quarkus-rest does not exist before 3.9. quarkus-hibernate-validator is now
declared explicitly because, unlike quarkus-resteasy, quarkus-rest does not
pull bean validation in transitively.
The compiler release moves to 17 on that path, as Quarkus 3.x requires it, so
the quarkus-security sample moves from the JDK 11 samples-jaxrs workflow to
samples-jdk17.
The useJakartaEe=false path is pinned to Quarkus 1.13.7, which predates Quarkus
REST, so it keeps RESTEasy Classic, Java 8 and its InputStream binding. The
array is deliberately left scalar there: @FormParam is a string-based
annotation, so List<InputStream> is rejected at deployment with RESTEASY003875.
Refs OpenAPITools#24454
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -393,6 +393,13 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSSpecServerCodegenTest.java
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2424,4 +2424,68 @@ public void generatesEmailAnnotationOnQueryParameterWhenBeanValidationEnabled()
0 commit comments