-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Redunant(wrong) direction appended to @PageableDefault #2152
Comments
springdoc-openapi will reflect your code description in the annotations.
Here is an example: @PageableDefault(sort = {
"some",
"other",
"another.that"
}, direction = Direction.DESC) |
@bnasslahsen Thanks. The way you described is exactly what I don't want to do. What if I want to do following? public PagedModel<Some> read(
@PageableDefault(sort = {
"some,desc",
"other,asc",
"another.that,desc"
})
@ParameterObject final Pageable pageable) {
} Thanks, again. |
If you want that syntax, you can propose a PR! |
@bnasslahsen Thank you, sir. I'm not intending any PR-required syntax. The following URIs are already valid.
The problem is that the UI doesn't detect the Thanks.
|
Apologies, if I'm understood in a very wrong way.
|
@bnasslahsen Would you please take a look at the PR? Thanks. |
[#2152] Detect directions in default sort values
Describe the bug
With following code,
Swagger UI renders a redundant direction,
The text was updated successfully, but these errors were encountered: