-
-
Notifications
You must be signed in to change notification settings - Fork 528
QuerydslBinderCustomizer alias being removed when using excludeUnlistedProperties #1075
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
Labels
bug
Something isn't working
Comments
This was referenced Mar 8, 2021
This was referenced Mar 16, 2021
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When we define a alias with QuerydslBinderCustomizer and set excludeUnlistedProperties = true, this alias is removed from the swagger definition.
To Reproduce
For example, if we have a User Entity, with email and firstName atributes, and we want to make a alias firstName -> name:
The alias "name" works and the filter for firstName is applied if passed by parameter.
Example:
http://localhost:8080/?name=George
But it doesn't show on swagger, only the email attribute is visible.
I made a little example to simulate the problem:
https://github.com/rafaelndev/querydsl-springdoc-example
Expected behavior
When a alias is defined it should be visible in swagger even if excludeUnlistedProperties is true, as it works in request.
The text was updated successfully, but these errors were encountered: