You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
` private static class MyClassBinder implements QuerydslBinderCustomizer {
@Override
public void customize(QuerydslBindings bindings, QMyClassEntity root) {
// exclude all properties from QMyClassEntity
bindings.excludeUnlistedProperties(true);
// define an explicit whitelist for properties to include
bindings.including(root.quantity);
// define an explicit blacklist for properties to include
bindings.excluding(root.orderId);
}
Ok. Should be now fixed.
You can validate with the lastest version of the master.
bnasslahsen
changed the title
QuerydslPredicateOperationCustomizer: black and whitelist no longer works because of Spring Data Commons change
QuerydslPredicateOperationCustomizer: black and whitelist no longer works because of Spring Data Commons change since SpringBoot 2.3.2
Aug 11, 2020
Because of this breaking change in Spring Data commons https://jira.spring.io/browse/DATACMNS-1744, the following lines in https://github.com/springdoc/springdoc-openapi/blob/master/springdoc-openapi-data-rest/src/main/java/org/springdoc/data/rest/customisers/QuerydslPredicateOperationCustomizer.java
lead to a null pointer exception:
Set<String> blacklist = getFieldValues(bindings, "blackList"); Set<String> whiteList = getFieldValues(bindings, "whiteList");
SpringBoot 2.3.2
Springdoc-openapi 1.4.1
The text was updated successfully, but these errors were encountered: