mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Added parameter validation for category_type
This commit is contained in:
parent
ea04619706
commit
54b7b4db3b
1 changed files with 1 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ function New-Category()
|
||||||
[string]$name,
|
[string]$name,
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
|
[ValidateSet("asset", "accessory", "consumable", "component")]
|
||||||
[string]$category_type,
|
[string]$category_type,
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue