We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Execute all operations, get the same error message:
{ "timestamp": "2020-02-27T22:00:18.456+0000", "status": 415, "error": "Unsupported Media Type", "message": "Content type '' not supported", "path": "/api/todos" }
To Reproduce Steps to reproduce the behavior:
implementation("org.springdoc:springdoc-openapi-ui:1.2.32")
@RestController @RequestMapping( path = ["/api/todos"], consumes = [MediaType.APPLICATION_JSON_VALUE], produces = [MediaType.APPLICATION_JSON_VALUE] ) @Tag(name = "Todo", description = "Todo API") class TodoRestController { @GetMapping fun getTodos(@RequestParam("id", required = false) ids: Array<Int>?): ResponseEntity<List<Todo>> { //... } }
Expected behavior Content-Type header should be the same as configured in @RequestMapping(consumes = "...").
Content-Type
@RequestMapping(consumes = "...")
Screenshots
The text was updated successfully, but these errors were encountered:
It seems that springfox-swagger2 also has the same problem. springfox/springfox#2036
Sorry, something went wrong.
@nguyenxndaidev,
This is related to OpenAPI Specification, even its allowed in spring. You can have a look at the following thread:
No branches or pull requests
Describe the bug
Execute all operations, get the same error message:
To Reproduce
Steps to reproduce the behavior:
implementation("org.springdoc:springdoc-openapi-ui:1.2.32")
Expected behavior
Content-Type
header should be the same as configured in@RequestMapping(consumes = "...")
.Screenshots

The text was updated successfully, but these errors were encountered: