Added parameter validation for category_type

This commit is contained in:
Tim Murphy 2020-06-29 19:27:04 -05:00
parent ea04619706
commit 54b7b4db3b

View file

@ -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)]