@autorest/powershell 3.0.520 → 3.0.521

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,7 +73,7 @@
73
73
  "powershell/models/model-extensions.ts": "92f57419e2bb8aec5272d62742ad528caebb66f4",
74
74
  "powershell/module/module-class.ts": "c1a2dcfbb394b739a553c7fa9dab6f03cfe1103f",
75
75
  "powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
76
- "powershell/package.json": "95c9b4af353b457c9747caa97dd46c98a3d28772",
76
+ "powershell/package.json": "b2cb370c2f19d749b19229675a6a7a1212406632",
77
77
  "powershell/plugins/add-azure-completers-v2.ts": "557ce4326318c82f91445490a162f20fa029fed3",
78
78
  "powershell/plugins/create-commands-v2.ts": "0190353c046a386a6458d2394377da59ae271643",
79
79
  "powershell/plugins/cs-namer-v2.ts": "e294a2f5ac3db421d030a3bba8343a3d4a9ea6ab",
@@ -95,7 +95,7 @@
95
95
  "powershell/resources/assets/export-surface.ps1": "b97888449ac519ffe26d3f6dddef18b7be7c96d4",
96
96
  "powershell/resources/assets/exports/README.md": "c8a90f9d2e9134c3366ae18eb6f2d5f169a8ee4b",
97
97
  "powershell/resources/assets/generate-help.ps1": "376c95fac5b8953b5cd45895d7df475c5d3c09be",
98
- "powershell/resources/assets/generate-portal-ux.ps1": "2ed86b9cd74f0801ee0bddaba27f097a07b80c9a",
98
+ "powershell/resources/assets/generate-portal-ux.ps1": "f95ac7b9764f920899dd8d49bc43ca32b9df30f7",
99
99
  "powershell/resources/assets/how-to.md": "a2fc9c53d35275e0e4cd8423e4e194744d359afd",
100
100
  "powershell/resources/assets/internal/README.md": "ec115a67f403df03f07892213b3b9e83867cdd41",
101
101
  "powershell/resources/assets/license.txt": "b9f3180fb9aff09aa7665db6b3226e492f670be6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/powershell",
3
- "version": "3.0.520",
3
+ "version": "3.0.521",
4
4
  "description": "AutoRest PowerShell Cmdlet Generator",
5
5
  "main": "dist/exports.js",
6
6
  "typings": "dist/exports.d.ts",
@@ -237,7 +237,16 @@ function New-MetadataForParameterSet()
237
237
  $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
238
238
  $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
239
239
  [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
240
+ if ($Null -eq $example)
241
+ {
242
+ $example = @()
243
+ }
244
+
240
245
  [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
246
+ if ($Null -eq $signature)
247
+ {
248
+ $signature = @()
249
+ }
241
250
 
242
251
  return @{
243
252
  Path = $httpPath