Azure / Azure/azure-powershell

The parameters with validate set cannot be auto completed for the generated cmdlets

Open
#11,934 3 comments 0 reactions 1 assignee Claimed by @msJinLei View on GitHub
act-codegen-extensibility-squad Generator MySQL P0
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

## Behaviour
For the parameters with ValidateSet attributes, the item in the validateset cannot be auto-completed.

## Current Affected cmdlets
- Get-AzMariaDBConnectionString
- Get-AzMySqlConnectionString
- Get-AzPostgreSqlConnectionString
- New-AzBotService
- Initialize-AzBotServicePrepareDeploy

## Root Cause
Attribute "ValidateSet" isn't exported.
The the definition of Get-AzMySqlConnectionString customized
https://github.com/Azure/azure-powershell/blob/49ff2986fbbd4feb665c7b03bdf2457bbcbc2c03/src/MySql/custom/Get-AzMySqlConnectionString.ps1#L46

The the definition of Get-AzMySqlConnectionString exported
https://github.com/Azure/azure-powershell/blob/49ff2986fbbd4feb665c7b03bdf2457bbcbc2c03/src/MySql/exports/Get-AzMySqlConnectionString.ps1#L76

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.