-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
position of @ApiOperation is not recognized #610
Comments
@heapifyman You can change the ordering by providing your own ordering logic using apiDescriptionOrdering. |
That does not seem to be working. I just tried with the following: .apiDescriptionOrdering(new Ordering<ApiDescription>() {
@Override
public int compare(ApiDescription left, ApiDescription right) {
return left.getDescription().compareTo(right.getDescription());
}
}); If I am not mistaken that should order the descriptions by method names of the controller? |
I encounter the same issue. The expected behavior would be that the |
I'm facing the same with the latest 1.x version 1.0.2. |
Is the issue still open? I'm see this in 2.x also. |
Its not open and the position is deprecated. |
Okay , thanks for the update. |
@dilipkrish Hi, if i want to order apis, what should i do? |
@fanjianhang Currently it is ordered by path |
@dilipkrish Thanks, i recommend it can order by position or some smart parameter |
I also encountered the same problem. |
I specified the
position
parameter in all@ApiOperation
annotations in my Controller, but the operations are listed in a different order in the generated swagger-ui.Am I missing something?
The text was updated successfully, but these errors were encountered: