Currently, in the categorySearch, categories are included in the response even if they don’t contain any products, which we would like to avoid in our implementation.
We suggest introducing a boolean flag, "requireProducts"—similar to "requirePrice" in productSearch—that ensures only categories with one or more associated products are included in the response.