Expected
The query parameters are set as being not required and as a result, they do not show up in the URL since they are not required.
Actual
The query parameters show up as being not required which is correct
But, they do show up in the URL path, and when I call the API without the query parameters, I get a 404, so the issue is that the parameters should not be added to the URL path since they are not required, but they are falsely added.
Bicep version
Bicep CLI version 0.26.54 (5e20b29b58)
Describe the bug I am using this code to deploy an API to APIM. I am using
loadJsonContent
to load in an OpenAPI spec (v3.0.1).The API has an endpoint with 2 non-required parameters (
iterationId
andgln
).I then deploy the API to APIM.
Expected The query parameters are set as being not required and as a result, they do not show up in the URL since they are not required.
Actual The query parameters show up as being not required which is correct![image](https://github.com/Azure/bicep/assets/5512569/d857359f-eb73-4aab-bb6a-e4b4d5079d17)
But, they do show up in the URL path, and when I call the API without the query parameters, I get a 404, so the issue is that the parameters should not be added to the URL path since they are not required, but they are falsely added.
To Reproduce See steps above.