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
{{ message }}
Repository navigation
Feature ask: Need the have ability to set custom query validator into SelectExpandQueryValidator #767
Assemblies affected
Which assemblies and versions are known to be affected e.g.: ASP.NET Core OData 8.x
Describe the bug @xuzhg, based on our discussion, I am just listing three issues which I hope we can improve:
Can't set custom query validator into SelectExpandQueryValidator, e.g.: The construct directly create the FilterQueryValidator, rather than expose as parameter, so customer can use DI or explicitly set it. Source code link.
Even SelectExpandQueryValidator allow us pass custom FilterQueryValidator via constructor, it will still not work due to the current code does some kind of hack) to create an internal virtual method to allow SelectExpandQueryValidator to set local properties like defaultValidationSetting. So even I create my custom filter query validator, I still can't set these fields and it will cause null reference issue eventually.
Activity