-
Notifications
You must be signed in to change notification settings - Fork 8.9k
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Missing start boundary for multipart body #8181
Comments
Having same issue, has this been resolved ? |
@naraesk change the requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
myFile: # The name of the form field that contains the file
type: string
format: binary As explained in Multipart Requests, the request body |
My request looks like below. I get a 200 back but it only passes the pdf file as an attachement but does not pass the Json part at all. Any ideas ? The "encoding" keyword does not seem to do anything at all.
components: |
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
It seems that there is no start boundary set. Chrome Dev Tools also only show the end boundary but no start boundary. This leads to the following exception on the server:
To reproduce...
Steps to reproduce the behavior:
Just fill out the form and have a look at the request header
Expected behavior
There should be a start boundary set, but there isn't any.
Screenshots
Additional context or thoughts
The curl command produced by swagger-ui works as expected, there the start boundary is set.
The text was updated successfully, but these errors were encountered: