bugfix/dart-dio/multipart-file-handling#20106
bugfix/dart-dio/multipart-file-handling#20106vasilich6107 wants to merge 1 commit intoOpenAPITools:masterfrom
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
deserializedoes not have a case forMultipartFileThis 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.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)