Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
112 stars 78 forks source link

Enum path parameter cause generate incorrect code #1121

Closed VeryEarly closed 1 year ago

VeryEarly commented 1 year ago
await this.Client.DirectLineRegenerateKeys(InputObject.ResourceGroupName ?? null, InputObject.ResourceName ?? null, InputObject.SubscriptionId ?? null, InputObject.ChannelName ?? ((Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.ChannelName)""), Parameter, onOk, onDefault, this, Pipeline);

ChannelName is enum, '??' cannot be applied to value type (e.g. enum, int)

dolauli commented 1 year ago

@VeryEarly Please add more details for this issue.