-
-
Notifications
You must be signed in to change notification settings - Fork 7k
bugfix/dart-dio/multipart-file-handling #20106
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
bugfix/dart-dio/multipart-file-handling #20106
Conversation
@jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08) |
f7af624
to
641c1e3
Compare
Question is, should a |
Hey @ahmednfwela |
well, this fix will still not fix the bug, since |
Hello, I stumbled upon this pull request while encountering this issue. In my case it was with From all my test before coming here looking it seems that the following schema :
always result in a In addition |
Hey @kaal-dam probably we have to eliminate multiplart file from type mapping |
@vasilich6107 file download should most likely be handled as Uint8List but upload via multipart request should still be handled by MultipartFile in my opinion https://swagger.io/docs/specification/v3_0/describing-request-body/file-upload/ by definition MultipartFile are for upload purposes not really for download purposes. but that's just my opinion, hope you find a solution soon have a nice day |
Hey @kaal-dam |
There is an attempt to create new generator |
in case if we have
The code fails with Exception
cause
deserialize
does not have a case forMultipartFile
This PR added handling the
case 'MultipartFile':
PR checklist
Commit all changed files.
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*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming7.x.0
minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)