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
If I send a POST multipart/form-data request with the form parameter which is supposed to contain some json-formatted string, the request is broken. As the example I have created a simple ASP NET Core Web API solution from the VS 2019 template and added a single method. Here is the screen of the SwaggerUI:
Here is seen, that JSON string instead of request like:
Describe the bug
If I send a POST
multipart/form-data
request with the form parameter which is supposed to contain some json-formatted string, the request is broken. As the example I have created a simple ASP NET Core Web API solution from the VS 2019 template and added a single method. Here is the screen of the SwaggerUI:Here is seen, that JSON string instead of request like:
becomes
As the result, ASP NET Core API method does not receive the parameter at all.
Expected behavior
JSON-formatted string is passed as string
Actual behavior
JSON-formatted string is split to separate properties and sent as separate form fields
Steps to reproduce
/~https://github.com/dslynko/swagger-post-json-issue
Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
Latest
.NET Version
8
Anything else?
No response
The text was updated successfully, but these errors were encountered: