Skip to content
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

When using both ‘@RequestParam’ and ‘@ApiImplicitParam’ at the same time, it will generate duplicate parameters in swagger.json #891

Open
zhangying930920 opened this issue May 18, 2023 · 1 comment

Comments

@zhangying930920
Copy link

No description provided.

@zhangying930920
Copy link
Author

for instance:
@ApiImplicitParams({
@ApiImplicitParam(name = "appId", value = " appId ", dataType = "String", paramType = "query", required = true),
@ApiImplicitParam(name = "deptId", value = " deptId ", dataType = "String", paramType = "query", required = true)
})
@responsebody
public Response getLocalApplication(@RequestParam(value = "appId") String appId,
@RequestParam(value = "deptId", required = false) String deptId)

swagger.json:
"parameters" : [ {
"name" : "appId",
"in" : "query",
"required" : true,
"type" : "string"
}, {
"name" : "deptId",
"in" : "query",
"required" : false,
"type" : "string"
}, {
"name" : "appId",
"in" : "query",
"description" : " appId ",
"required" : true,
"type" : "String"
}, {
"name" : "deptId",
"in" : "query",
"description" : " deptId ",
"required" : true,
"type" : "String"
} ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant