Closed peombwa closed 8 months ago
Looks like a regression issue. Will try to fix it in autorest powershell v4.
The issue is in modelerfour instead of autorest.powershell. Schema is missing as below.
responses:
- language:
default:
name: ''
description: Success
protocol:
http:
statusCodes:
- 2XX
And after the issue is fixed in modelerfour, we will need to update the modelerfour version accordingly.
Move label v4 since we need the issue is fixed in modelerfour first.
AutoREST.PowerShell v2, would generate
-OutFile
parameters for OpenAPI operations that hadstream
response. This is no longer the case with AutoREST.PowerShell v3.Repro Steps
Using the sample at https://gist.github.com/peombwa/86bda868b27540fba3d9c08bf8f150f3, generate PowerShell modules using:
Using AutoREST.PowerShell v2.x
C#
cmdlet in./V2/generated/cmdlets/GetReportEmailActivityCount_Get.cs
.-OutFile
parameter is generated as expected.Using AutoREST.PowerShell v3.x
C#
cmdlet in./V3/generated/cmdlets/GetReportEmailActivityCount_Get.cs
.-OutFile
parameter is not generated.Additional Notes
The issue appears to be in: https://github.com/Azure/autorest.powershell/blob/a638a03496b72ea7053a3b09c60cab77b226aed2/powershell/cmdlets/class.ts#L393-L399