-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Sending multi-part-formdata #1126
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
Comments
What's the Swagger definition you get from your code? Strictly speaking, at the moment, Swagger does not support the structure you want to expose. You can say your operation accepts several files, but you cannot say that these files are of specific type or structure. With the current version of the spec, you also can't have complex data type as form parameters. |
That's an invalid definition, but more of a question to swagger-core (I assume you use the wrong dependency). In any case, what you're trying to describe isn't supported by Swagger right now (there are plans to change it in a future version). |
I din't get wrong dependency for swagger-core? |
Modifying comments makes it difficult to provide proper support. The original definition you posted was invalid. In any case, what you're trying to do is not supported. |
So ,Ron |
There's this issue - OAI/OpenAPI-Specification#222. I can't comment on whether or not that's going to be included in a future version of the spec. |
Closing as not supported. |
I have a use case where a jersey rest service accepts multiple complex object as
@FormDataParam
.Below is the code snippet
I am able to successfully call this service from Jersey client.
Below is the client snippet
I intercepted the request generated by the client...which is
and I am able to get the response successfully.
Now the issue is how to call the this service from swagger UI, I see the the swagger doc is generated and its taking two formData parameter and Model is also present...but the swagger UI is not able to invoke the service , I am getting error code 415.
Please help me with this issue so that I can post multiple complex object from Swagger UI.
The text was updated successfully, but these errors were encountered: