Skip to content

Commit 2e4ae59

Browse files
Remove parameterValue from markdown (#729)
1 parent 3fda833 commit 2e4ae59

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/MarkdownReader/V2ParameterMetadata.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public class ParameterMetadataV2
4646
[YamlIgnore]
4747
public bool VariableLength { get; set;}
4848
public bool SupportsWildcards { get; set;}
49+
50+
[YamlIgnore]
4951
public List<string> ParameterValue { get; set;}
5052
public List<string> Aliases { get; set;}
5153
public List<ParameterSetV2> ParameterSets { get; set; }

test/Pester/ExportMarkdownCommandHelp.Tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ Describe "Export-MarkdownCommandHelp" {
202202
param ($number)
203203
$ch.Parameters[$number] -eq $ch2.Parameters[$number] | Should -Be $true
204204
}
205+
206+
It "Parameter yaml block should not have parameterValue" {
207+
Get-Content "${outputFolder}/Get-Date.md" | Should -Not -Match "parameterValue"
208+
}
205209
}
206210

207211
Context "File Content - Input/Output" {

0 commit comments

Comments
 (0)