Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AccessPolicies is not required in swagger but still need pass empty array

Yao725 opened this issue · comments

In the swagger definition of keyVault, accessPolicies is not a required parameter. But the test result showed that we at least need to pass an empty array to make this request work. I don't think it's a ideal behavior because if the property is not required, we should be able to create the vault without extra operations such as passing an empty array.

Considering this problem was found in .net sdk, also created an issue in azure-sdk-for-net repo, see more details here.

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @RandalliLama, @schaabs, @jlichwa.

Issue Details

In the swagger definition of keyVault, accessPolicies is not a required parameter. But the test result showed that we at least need to pass an empty array to make this request work. I don't think it's a ideal behavior because if the property is not required, we should be able to create the vault without extra operations such as passing an empty array.

Considering this problem was found in .net sdk, also created an issue in azure-sdk-for-net repo, see more details here.

Author: Yao725
Assignees: -
Labels:

KeyVault, Service Attention, needs-triage

Milestone: -

@Yao725 thank you for reporting. We will work with engineering team to mark it required in our REST API.