-
Notifications
You must be signed in to change notification settings - Fork 11
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
multipartfile/ type: string, format: binary not always handled correctly #50
Comments
I've found this can be worked around with the --type-mappings option: |
well, the wrong type can be worked around, but it doesn't fix the faulty fromJson method |
so, with the changes from #55 and #57 I can work around the last problem I'm having by giving the generator my own type mapping: |
This bit is fixed in 6.1 but the support for MultipartFile is still a bit rubbish. I need to actually nail it down, so I will leave this open until I fix it properly. |
I see that the project is supposed to support file uploads via multipartfile content, but it doesn't seem to always work. Maybe the problem is it only works with inline schemas and not referenced schemas?
Example:
schema
generated model
what I can immediately see is wrong are the type of the filepath atribute (
ApiResponse?
instead ofMultipartFile?
) and the fromJson method in which the syntax for the filepath instantiation is wrong- the third part of the ternary operator along with the semicolon at the end of the line is missingThe text was updated successfully, but these errors were encountered: