Swagger-ui 3.x no longer detects content type based on parameter
See original GitHub issueIn 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
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (15 by maintainers)
Top Results From Across the Web
asp.net - Swagger UI doesn't render body parameter field for ...
I added a new Controller to my API. There is a GET action with a complex type parameter. For complex types, Web API...
Read more >CORS - Swagger Documentation
This tells us that the petstore resource listing supports OPTIONS, and the following headers: Content-Type , api_key , Authorization . Try Swagger UI...
Read more >F.A.Q - Springdoc-openapi
How can I disable/enable Swagger UI generation based on env variable? ... Note: Header parameters named Accept, Content-Type and ...
Read more >Using OpenAPI and Swagger UI - Quarkus
License. All of this information (and more) can be included in your Java code by using appropriate OpenAPI annotations on a JAX-RS ...
Read more >SwaggerHub On-Premise Release Notes - SmartBear Support
It is no longer required to enable the anyuid SCC on OpenShift. ... Updated Swagger UI to v. 4.0.4 and Swagger Editor to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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-urlencoded
it’ll behave differently.