Skip to content

Assert-BoundParameters: Add parameter AtLeastOneList #161

@johlju

Description

@johlju

Problem description

Suggest to add a new parameter -AtLeastOneList that will assert that at least one of the properties be provided.

# Validate that at least one of Severity or MessageId is specified
Assert-BoundParameter -BoundParameterList $properties -AtLeastOneList @('Severity', 'MessageId')

Verbose logs

n/a

How to reproduce

n/a

Expected behavior

n/a

Current behavior

n/a

Suggested solution

Add as a new parameter set AtLeastOne

Operating system the target node is running

n/a

PowerShell version and build the target node is running

n/a

Module version used

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.good first issueThe issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions