Skip to content

Commit

Permalink
Add Problem to validate sets of OutputOutcome, fix #2542 (#2543)
Browse files Browse the repository at this point in the history
Co-authored-by: Bernie White <[email protected]>
  • Loading branch information
nightroman and BernieWhite authored Sep 17, 2024
1 parent eeddae5 commit 7cdc9b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ What's changed since pre-release v3.0.0-B0203:
[#1860](https://github.com/microsoft/PSRule/issues/1860)
- Fixed aggregation of reasons with `$Assert.AnyOf()` by @BernieWhite.
[#1829](https://github.com/microsoft/PSRule/issues/1829)
- Added `Problem` to validate sets of `OutputOutcome` by @nightroman
[#2542](https://github.com/microsoft/PSRule/issues/2542)

## v3.0.0-B0203 (pre-release)

Expand Down
6 changes: 3 additions & 3 deletions src/PSRule/PSRule.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ function New-PSRuleOption {

# Sets the Output.Outcome option
[Parameter(Mandatory = $False)]
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Processed', 'All')]
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Problem', 'Processed', 'All')]
[Alias('Outcome')]
[PSRule.Rules.RuleOutcome]$OutputOutcome = 'Processed',

Expand Down Expand Up @@ -1612,7 +1612,7 @@ function Set-PSRuleOption {

# Sets the Output.Outcome option
[Parameter(Mandatory = $False)]
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Processed', 'All')]
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Problem', 'Processed', 'All')]
[Alias('Outcome')]
[PSRule.Rules.RuleOutcome]$OutputOutcome = 'Processed',

Expand Down Expand Up @@ -2376,7 +2376,7 @@ function SetOptions {

# Sets the Output.Outcome option
[Parameter(Mandatory = $False)]
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Processed', 'All')]
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Problem', 'Processed', 'All')]
[Alias('Outcome')]
[PSRule.Rules.RuleOutcome]$OutputOutcome = 'Processed',

Expand Down

0 comments on commit 7cdc9b5

Please sign in to comment.