Azure / Azure/api-management-developer-portal

Ocp-Apim-Subscription-Key should be a required field if API requires a Subscription

Open
#941 2 comments 0 reactions 1 assignee Claimed by @azaslonov View on GitHub
(t) Bug (u) Test console P1
Dominant language
TypeScript
Stars
545
Forks
360
PR merge metrics
No merged PRs in 30d

Description

## Bug description

If the user accidently removes the subscription key from the Ocp-Apim-Subscription-Key field, it should put up the "value is required" validation check.

## Reproduction steps

1. Create an API with a Required Subscription
2. Open the Try It Panel
3. You should see the Subscription Key value preloaded in the Ocp-Apim-Subscription-Key field
4. Delete the contents of this field (keep the field as empty)
5. Click the Send button

## Expected behavior

We are seeing this
![image](https://user-images.githubusercontent.com/65634611/94180968-a90a8100-fe53-11ea-9c77-322b067c545f.png)

Where it should have the validation check since Subscription Key is required for this API

![image](https://user-images.githubusercontent.com/65634611/94181167-e8d16880-fe53-11ea-88af-769dec252c2b.png)

## Is your portal managed or self-hosted?

Both

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.