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
The text was updated successfully, but these errors were encountered:
noahlann
changed the title
QuerydslPredicateOperationCustomizer exclude static fields.
QuerydslPredicateOperationCustomizer exclude static fields and support QuerydslBindings#excludeUnlistedProperties feature
Sep 15, 2020
I have exactly the same problem, like crazy6995! hidden=true is not possible because QueryDSL-Binding classes are generated and should not be edited manually.
It would be a killer feature if springdoc-openapi could evaluate the QuerydslBindings.excludeUnlistedProperty and ONLY put the included fields in the OpenAPI. This would be a consistent "mapping" between allowed QueryDSL fields and the OpenAPI request documentation.
If bindings.excludeUnlistedProperties(true); --> ONLY add the allowList to fieldsToAdd.
If bindings.excludeUnlistedProperties(false); --> execute existing code and maybe always exclude static fields.
Situation 1:
i have a entity like this:
normally, QuerydslPredicateOperationCustomizer add all the entity fields, include static fields...
i get this

we don't need static fields of the entity in usually.
so we need exclude these static fields.
Situation 2:
Support QuerydslBindings.excludeUnlistedProperties feature.
i have customize QuerydslBindings with
bindings.excludeUnlistedProperties(true);
i just want the field that
root.name
for query parameter.maybe this way:
org.springdoc.data.rest.customisers.QuerydslPredicateOperationCustomizer#customize
i got what i want:
sorry for my poor english.
The text was updated successfully, but these errors were encountered: