You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to specify file uploads in a multipart/form-data schema the Java generator will generate a method that takes a byte[] argument. But the OpenAPI Specification 3.0 states that byte arrays are properties defined as:
I'd expect that in the generated Java code this would be a java.util.File argument. That way the used HTTP client can properly determine the Content-Type and Content-Disposition headers, where the latter contains the filename. These headers are both mandatory when submitting a file upload according to the multipart specification.
The text was updated successfully, but these errors were encountered:
When attempting to specify file uploads in a
multipart/form-data
schema the Java generator will generate a method that takes abyte[]
argument. But the OpenAPI Specification 3.0 states that byte arrays are properties defined as:Specifying a binary type such as a file upload can be defined by using the binary format:
I'd expect that in the generated Java code this would be a
java.util.File
argument. That way the used HTTP client can properly determine theContent-Type
andContent-Disposition
headers, where the latter contains the filename. These headers are both mandatory when submitting a file upload according to the multipart specification.The text was updated successfully, but these errors were encountered: