Skip to content

Commit 909c270

Browse files
Merge pull request #53 from theohbrothers/test/entrypoint-add-parameter-and-variable-validation-attributes
Test (entrypoint): Add parameter and variable validation attributes
2 parents b0cef6d + 9af45af commit 909c270

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/samples/test/test.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[CmdletBinding()]
22
param (
3+
[Parameter(Mandatory=$false)]
4+
[ValidateNotNullOrEmpty()]
35
[string]$Tag = ''
46
)
57

test/test.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[CmdletBinding()]
22
param (
3+
[Parameter(Mandatory=$false)]
4+
[ValidateNotNullOrEmpty()]
35
[string]$Tag = ''
46
)
57

0 commit comments

Comments
 (0)