I have an API which is accepting query param as Object. I am using this to add multiple filters to filter the result.
When I hit the request from swagger, I am getting null for my filter object in the controller.
userFilter is the POJO class. It is used as a query param and in the controller, it is coming as null.
On swagger, it is showing as below
userFilter object is not getting constructed and getting NullPointerException in controller class when trying to access any field from userFilter.

userFilterparameter from your OpenAPI YAML/JSON file, and also your controller code.userFilteris the POJO class, and in the controller, it is coming as null. I have useduserFilteras query param.