-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix multi-part binary form parameters for jaxrs-jersey templates #7363
Fix multi-part binary form parameters for jaxrs-jersey templates #7363
Conversation
daa0177
to
13e090b
Compare
CI all tests passed. @wing328 Could you review this PR, please. |
13e090b
to
179edb8
Compare
PR branch is rebased on latest master as of 'Sep 23 02:45:29 2020', and resolved confliction in |
179edb8
to
c9d0ff8
Compare
PR branch is rebased on latest master as of 'Oct 14 10:13:17 2020 +0800'. To technical committee and maintainers: Please let me know your estimation when this PR is reviewed and merged into master? @bbdouglas @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger @karismann @Zomzog @lwlee2608 @bkabrda @wing328 @jimschubert and all |
e578593
to
23654e9
Compare
… on generating jaxrs-jersey. This commit aims to fix OpenAPITools#7330 with described solution 'choice C'.
… file on generating followed latest master branch of OpenAPITools/openapi-generator
…resolve failure of CI test on PR.
23654e9
to
7be9c94
Compare
@itaru2622 thanks for the PR, which has been merged into master but it's causing build failures. I've commented out the test via 07c23f4. I wonder if you can pull the latest master to take a look when you've time. Thanks. |
@wing328 first, Thank you for merging.
hmm... I will check some-how with latest master. |
@wing328 I found the reason as bellow, and after little modification including revert 07c23f4, It succeeded building again. ;-)
my little modification is:
Let me know what should I do next. The above description is enough for you? or ... I'm looking forward hearing from you... ;-) |
@itaru2622 ah right. Forgot about the isArray change (I thought the PR hasn't merged yet). I've filed #7806 to fix the issue. CI tests look good so far. |
Multi-part binary array form as outlined in #7330 resulted in a single of InputStream and a single of FormDataContentDisposition rather than List of them. This PR attempts to resolv above by adjusting the templates for jaxrs-jersey. Changes to these templates include:
FormDataBodyPart
rather than {InputStream
andFormDataContentDisposition
} and wrap it inList
where appropriate, as described in issue [BUG] [jaxrs-jersey] [java] [jersey] Generated API interface treats multipart arrays as a single file #7330 'choice C'Fix #7330
technical committee: @bbdouglas @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger @karismann @Zomzog @lwlee2608 @bkabrda
PR checklist
./bin/generate-samples.sh
to update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH.master