[ 
https://issues.apache.org/jira/browse/CXF-9134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrei Bastun updated CXF-9134:
-------------------------------
    Description: 
In the ClientProxyImpl handleMultipart method creates new Attachment instance 
for every parameter.
 
openapi-generator generates code that already has Attachment parameter type.
{code}
/**
 * OpenAPI Petstore
 *
 * <p>This is a sample server Petstore server. For this sample, you can use the 
api key `special-key` to test the authorization filters.
 *
 */
public class PetApiServiceImpl implements PetApi {
.....
    @Override
    public ModelApiResponse uploadFile(Long petId, String additionalMetadata,  
Attachment _fileDetail) {
.....
{code}

 
Wrapping Attacment into Attachment is not necessary
 

  was:
In the ClientProxyImpl handleMultipart method creates new Attachment instance 
for every parameter.
 
openapi-generator generates code that already has Attachment parameter type.
 
Wrapping Attacment into Attachment is not necessary
 


> When sending Multipart request do not wrap Attachment into another Attachment
> -----------------------------------------------------------------------------
>
>                 Key: CXF-9134
>                 URL: https://issues.apache.org/jira/browse/CXF-9134
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Andrei Bastun
>            Priority: Major
>
> In the ClientProxyImpl handleMultipart method creates new Attachment instance 
> for every parameter.
>  
> openapi-generator generates code that already has Attachment parameter type.
> {code}
> /**
>  * OpenAPI Petstore
>  *
>  * <p>This is a sample server Petstore server. For this sample, you can use 
> the api key `special-key` to test the authorization filters.
>  *
>  */
> public class PetApiServiceImpl implements PetApi {
> .....
>     @Override
>     public ModelApiResponse uploadFile(Long petId, String additionalMetadata, 
>  Attachment _fileDetail) {
> .....
> {code}
>  
> Wrapping Attacment into Attachment is not necessary
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to