forked from loafle/openapi-generator-original
[jaxrs-cxf-cdi] Support PATCH httpMethod (#5574)
Update the required CXF version to 3.1.2 since PATCH support appeared with this version. Add the cxf PATCH annotation to the imports so that the generated code when defining a PATCH api compiles.
This commit is contained in:
@@ -14,6 +14,7 @@ import javax.inject.Inject;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.cxf.jaxrs.ext.PATCH;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Multipart;
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
|
||||
<!-- Version is just a guess -->
|
||||
<!-- IBM WebSphere Application Server Liberty Core v8.5.5.6 uses v3.0.2, source https://www.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.core.doc/ae/rwlp_jaxrs_secure.html -->
|
||||
<version>3.0.2</version>
|
||||
<!-- Require at lease CXF 3.1.2 since HTTP PATCH support was added on this version -->
|
||||
<version>3.1.2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import javax.inject.Inject;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.cxf.jaxrs.ext.PATCH;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Multipart;
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import javax.inject.Inject;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.cxf.jaxrs.ext.PATCH;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Multipart;
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import javax.inject.Inject;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.cxf.jaxrs.ext.PATCH;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Multipart;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user