Issue with Empty Query Parameters Being Sent

Hello,
I’m encountering an issue with query parameters in Apidog. When I define optional query parameters in the request and leave them empty, Apidog still sends them in the URL as &param=. This causes validation errors on my API because empty strings are not valid for these fields.
For example, my request includes parameters like Regroupement, HabitudeAlimentaire, and Allergie. If I leave them blank, the actual request looks like this:
GET /endpoint?..&Regroupement=&HabitudeAlimentaire=&Allergie=

Instead, I would like Apidog to omit these parameters entirely when their value is empty, so the request only includes the parameters that have values.
When I use the same API through Swagger, I don’t have this problem — empty parameters are simply not sent. I would like Apidog to behave the same way.

Hello Margott,

Thank you for your feedback. I’ll forward this issue to our product team for evaluation regarding the handling of empty query parameters. We appreciate you bringing this to our attention.

I’m seeing the same thing. More worryingly, if i remove the query params (which are optional) the response is incorrect, despite the path only having a single schema shape defined for it

Could you please share a screenshot of the error you’re encountering?

Hello Margott,

You can try enabling the “Omit empty parameters” option in Apidog’s settings. This will prevent sending query parameters with empty values in the request URL. The option is available under Request Settings when configuring your API endpoint.

To omit empty parameters in your request, simply uncheck the box next to the parameter name in Apidog. This will prevent the parameter from being sent entirely when left empty.