Regression introduced by #1508
The constructor of GenericBreakingChangeAttribute has four parameters: string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate.
According to spec, the positional arguments (if any) precede the named arguments..
The issue can be fixed by change the order of the parameters at
|
parameters.push('""'); |
|
parameters.push(`"${breakingChange.cmdlet.deprecateByAzVersion}"`); |
|
parameters.push(`"${breakingChange.cmdlet.deprecateByVersion}"`); |
|
parameters.push(`ChangeDescription = "${breakingChange.cmdlet.changeDescription}"`); |
|
if (breakingChange.cmdlet.changeInEfectByDate) parameters.push(`"${breakingChange.cmdlet.changeInEfectByDate}"`); |
|
return new Attribute(ClientRuntime.GenericBreakingChangeAttribute, { parameters: parameters }); |
Regression introduced by #1508
The constructor of
GenericBreakingChangeAttributehas four parameters:string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate.According to spec, the positional arguments (if any) precede the named arguments..
The issue can be fixed by change the order of the parameters at
autorest.powershell/powershell/cmdlets/class.ts
Lines 2313 to 2318 in b25268f