From 54b7b4db3b6f09ce0fc0a8f5fa1c24d3d4a737c0 Mon Sep 17 00:00:00 2001 From: Tim Murphy Date: Mon, 29 Jun 2020 19:27:04 -0500 Subject: [PATCH] Added parameter validation for category_type --- SnipeitPS/Public/New-Category.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/SnipeitPS/Public/New-Category.ps1 b/SnipeitPS/Public/New-Category.ps1 index aefbd53..e047ff6 100644 --- a/SnipeitPS/Public/New-Category.ps1 +++ b/SnipeitPS/Public/New-Category.ps1 @@ -31,6 +31,7 @@ function New-Category() [string]$name, [parameter(mandatory = $true)] + [ValidateSet("asset", "accessory", "consumable", "component")] [string]$category_type, [parameter(mandatory = $true)]