Closed
Description
Describe the bug
When we define a alias with QuerydslBinderCustomizer and set excludeUnlistedProperties = true, this alias is removed from the swagger definition.
To Reproduce
- Spring Boot 2.4.3
- Springdocs 1.5.4
For example, if we have a User Entity, with email and firstName atributes, and we want to make a alias firstName -> name:
@Override
default void customize(QuerydslBindings bindings, QUser user) {
bindings.excludeUnlistedProperties(true);
bindings.including(user.email);
bindings.bind(user.firstName).as("name").withDefaultBinding();
}
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.