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 one content type (a/a) is ignored
To Reproduce Steps to reproduce the behavior:
@Operation(description = "a") @GetMapping(path = "/", produces = "a/a") public String a() { return "A"; } @Operation(description = "b") @GetMapping(path = "/", produces = "b/b") public String b() { return "B"; }
actual result:
"content":{ "b/b":{ "schema":{ "type":"string" } } }
A bug and solution are probably in GenericResponseService.java: https://github.com/springdoc/springdoc-openapi/pull/2478/files#diff-bde5de3f4d4588ddcb3a1efb697aa8fc5fd857d63bc4e1d003d10d55d1e973cf
GenericResponseService.java
Expected behavior
"responses":{ "200":{ "description":"OK", "content":{ "b/b":{ "schema":{ "type":"string" } } ,"a/a":{ "schema":{ "type":"string" } } } } }
The text was updated successfully, but these errors were encountered:
springdoc#2477 buildApiResponses ignores produced ContentType in case…
d901cea
… of many @operation
?
Sorry, something went wrong.
@hexmind,
your PR is in draft mode. have completed your PR ?
Hi, my intention of this PR was to show a problem and a behavior only.
ok, will take it in consideration for further investigations.
bfc57ab
No branches or pull requests
Describe the bug
one content type (a/a) is ignored
To Reproduce
Steps to reproduce the behavior:
input:
actual result:
#2477 buildApiResponses ignores produced ContentType in case of many @Operation #2478
A bug and solution are probably in
GenericResponseService.java
:https://github.com/springdoc/springdoc-openapi/pull/2478/files#diff-bde5de3f4d4588ddcb3a1efb697aa8fc5fd857d63bc4e1d003d10d55d1e973cf
Expected behavior
The text was updated successfully, but these errors were encountered: