Skip to content

Commit 7cdc9b5

Browse files
Add Problem to validate sets of OutputOutcome, fix #2542 (#2543)
Co-authored-by: Bernie White <[email protected]>
1 parent eeddae5 commit 7cdc9b5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/CHANGELOG-v3.md

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ What's changed since pre-release v3.0.0-B0203:
6767
[#1860](https://github.com/microsoft/PSRule/issues/1860)
6868
- Fixed aggregation of reasons with `$Assert.AnyOf()` by @BernieWhite.
6969
[#1829](https://github.com/microsoft/PSRule/issues/1829)
70+
- Added `Problem` to validate sets of `OutputOutcome` by @nightroman
71+
[#2542](https://github.com/microsoft/PSRule/issues/2542)
7072

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

src/PSRule/PSRule.psm1

+3-3
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ function New-PSRuleOption {
13091309

13101310
# Sets the Output.Outcome option
13111311
[Parameter(Mandatory = $False)]
1312-
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Processed', 'All')]
1312+
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Problem', 'Processed', 'All')]
13131313
[Alias('Outcome')]
13141314
[PSRule.Rules.RuleOutcome]$OutputOutcome = 'Processed',
13151315

@@ -1612,7 +1612,7 @@ function Set-PSRuleOption {
16121612

16131613
# Sets the Output.Outcome option
16141614
[Parameter(Mandatory = $False)]
1615-
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Processed', 'All')]
1615+
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Problem', 'Processed', 'All')]
16161616
[Alias('Outcome')]
16171617
[PSRule.Rules.RuleOutcome]$OutputOutcome = 'Processed',
16181618

@@ -2376,7 +2376,7 @@ function SetOptions {
23762376

23772377
# Sets the Output.Outcome option
23782378
[Parameter(Mandatory = $False)]
2379-
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Processed', 'All')]
2379+
[ValidateSet('None', 'Fail', 'Pass', 'Error', 'Problem', 'Processed', 'All')]
23802380
[Alias('Outcome')]
23812381
[PSRule.Rules.RuleOutcome]$OutputOutcome = 'Processed',
23822382

0 commit comments

Comments
 (0)