swagger-ui: Swagger-ui 3.x no longer detects content type based on parameter
In swagger-ui 2.x if there was a formData parameter Content-Type:application/x-www-form-urlencoded would be set automatically. Example:

With the new swagger-ui 3.x the ContentType isn’t changed based on the presence of a formData parameter and sticks with content-type:application/json
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (15 by maintainers)
Glad you got it working. We’ll give it a few more days before closing the issue.
That’s because you’re defining the payload as json. If you change it to
application/x-www-form-urlencodedit’ll behave differently.