Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
478 stars 306 forks source link

Default query params values appearing in the APIM-Developer portal drop down option #2384

Closed rnaveen5 closed 3 months ago

rnaveen5 commented 5 months ago

Bug description

In the Azure APIM , the Front end settings 's Query parameter shows ups value by default.

Expected behavior

The dropdown box in the "Try it" query params section does not show any option by default

Is your portal managed or self-hosted?

Managed

Environment

image

malincrist commented 5 months ago

Hi @rnaveen5 , thank you for reaching out! I'm not sure I understand what you mean. From Azure Portal, you can select a query param to be the default value, such as: image

Then, in developer portal, this value will be selected by default: image

Can you please clarify what issue you are experiencing? Is this behavior not working as expected for you or did I misunderstand the description of the issue?

rnaveen5 commented 5 months ago

Hi @malincrist we have an Enum field as a query parameter in the specification and it marked with no default values.

image

It even shows the values in the Developer portal which actual should appear by default as empty.

image

The reason being , this value gets added to the call even without the user selecting the value.

malincrist commented 5 months ago

oh, I got it now, dev portal populates enums even if "no default" is selected. Thanks for the clarification! I have created an internal work item for us to address this. Thanks for reporting it.

rnaveen5 commented 4 months ago

Hi @malincrist , Just following up . Any idea on the ETA.

sthirthala commented 3 months ago

For managed portal, please create a support request using azure help and support center

https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request