-
Notifications
You must be signed in to change notification settings - Fork 289
When the interface returns a List structure and uses responseBodyAdvice to configure a unified return structure, the document output type is 'array'. #641
New issue
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
Comments
#599 |
@shalousun 3.0.0 |
The community's group ID has changed. |
This bug has been fixed in version 3.0.0. |
Uh oh!
There was an error while loading. Please reload this page.
When the interface returns a List structure and uses responseBodyAdvice to configure a unified return structure, the document output type is 'array'.
Your Environment
Include as many relevant details about the environment where you experienced the bug.
smart-doc version: 2.7.7
plugin version (e.g., smart-doc-maven-plugin or smart-doc-gradle-plugin): 2.7.7
build tool version (maven or gradle): 3.8.6
jdk version: 1.8.0_381
Expected Behavior
If you're describing a bug, tell us what should happen.
If you're suggesting a change/improvement, tell us how it should work.
Current Behavior
If describing a bug, tell us what happens instead of the expected behavior.
If suggesting a change/improvement, explain the difference from current behavior.
In the JSON document generated by smart-doc:swagger, when the interface returns a List,
"type": "array"
. I have configured a unified return structure using responseBodyAdvice, expecting the type to be an object.Configuration:
Unified return definition:
Interface definition:
Generated swagger document:
Possible Solution
Not obligatory, but suggest a fix/reason for the bug, or ideas on how to implement the addition or change.
Steps to Reproduce
Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce if relevant.
The text was updated successfully, but these errors were encountered: