platyPS icon indicating copy to clipboard operation
platyPS copied to clipboard

New-MarkdownHelp v2 does not generate InputType for `Set-AzDataLakeAnalyticsAccount`

Open adityapatwardhan opened this issue 4 years ago • 2 comments

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

adityapatwardhan avatar Jun 21 '21 17:06 adityapatwardhan

Need to test again with Microsoft.PowerShell.PlatyPS v1.

sdwheeler avatar May 24 '24 15:05 sdwheeler

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.

sdwheeler avatar May 24 '24 18:05 sdwheeler

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

sdwheeler avatar May 22 '25 18:05 sdwheeler

Tested with new private build (to be Preview5). This is fixed now.

sdwheeler avatar Jun 27 '25 19:06 sdwheeler