platyPS
platyPS copied to clipboard
New-MarkdownHelp v2 does not generate InputType for `Set-AzDataLakeAnalyticsAccount`
Steps to reproduce
New-MarkdownHelp -Command Set-AzDataLakeAnalyticsAccount -OutputFolder d:\temp\datalake -Force -UseFullTypeName
Expected behavior
InputType section should not be empty in the generated markdown
Actual behavior
empty section with empty 3rd level headers
Environment data
v2.0.0-preview.1
Need to test again with Microsoft.PowerShell.PlatyPS v1.
Tested again with Microsoft.PowerShell.PlatyPS v1. Problem still exists.
It looks like the conversion from CommandInfo (Get-Command) is not creating the list of types for parameters that accept pipeline input.
This is still a problem in v1.0.0-preview.4.
Repro steps:
ipmo Az.DataLakeAnalytics
$c = New-CommandHelp (gcm Set-AzDataLakeAnalyticsAccount)
$c.Inputs
Typename
--------
System.String
System.Collections.Hashtable
System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea…
System.Nullable`1[[Microsoft.Azure.Management.DataLake.Analytics.Models.TierType, Microsoft.Azure.Management.DataLake.…
System.Nullable`1[[Microsoft.Azure.Management.DataLake.Analytics.Models.FirewallState, Microsoft.Azure.Management.Data…
System.Nullable`1[[Microsoft.Azure.Management.DataLake.Analytics.Models.FirewallAllowAzureIpsState, Microsoft.Azure.Ma…
The output should be:
Typename
--------
System.String
System.Collections.Hashtable
System.Int32
Microsoft.Azure.Management.DataLake.Analytics.Models.TierType
Microsoft.Azure.Management.DataLake.Analytics.Models.FirewallState
Microsoft.Azure.Management.DataLake.Analytics.Models.FirewallAllowAzureIpsState
Tested with new private build (to be Preview5). This is fixed now.