Open CyrilleBenard opened 5 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
After having a look on what's this kind of media type, I noticed that the generator produces a multipart/form-data treatment (class, method, code) and I wonder why ?
In my really small openapi file example, there is no multipart/form-data referenced so, is there a confusion between these two media types (multipart/form-data vs multipart/related) ? Does the expected code is really close to the current one, so that we can reuse almost part of the current generated code ? I got really no experience on that :confused:
Any help would be appreciated :)
Bug Report Checklist
Description
The generator produces the code with the expected http content type but the corresponding code has not been generated, so that an exception is raised.
Generated code looks like :
"multipart/related" is set correctly but just behind its set, there is no corresponding code so that the ApiException (415) is raised
openapi-generator version
4.0.0-SNAPSHOT - hash 4b414d81d49ae21447d944cca1693a11bb0140dd
OpenAPI declaration file content or url
Command line used for generation
openapi-generator-cli.sh generate -i ./openapi.yaml -g cpp-restsdk -o gen-cpp
Steps to reproduce
Just generate
Related issues/PRs
N/A
Suggest a fix
Generate the corresponding code (>_<) :joy: