Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/MarkdownReader/V2ParameterMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public class ParameterMetadataV2
[YamlIgnore]
public bool VariableLength { get; set;}
public bool SupportsWildcards { get; set;}

[YamlIgnore]
public List<string> ParameterValue { get; set;}
public List<string> Aliases { get; set;}
public List<ParameterSetV2> ParameterSets { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions test/Pester/ExportMarkdownCommandHelp.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ Describe "Export-MarkdownCommandHelp" {
param ($number)
$ch.Parameters[$number] -eq $ch2.Parameters[$number] | Should -Be $true
}

It "Parameter yaml block should not have parameterValue" {
Get-Content "${outputFolder}/Get-Date.md" | Should -Not -Match "parameterValue"
}
}

Context "File Content - Input/Output" {
Expand Down