Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update cDscResourceDesigner.psm1

Adding comments around ValidateSet confirming this does not really have documentation and referring to #113 showing the community is aware of this.
  • Loading branch information...
ArtWDrahn committed Apr 14, 2015
1 parent a38ecd2 commit ae4c1095c38e8971d5e83270467a0b2e89b683f2
Showing with 3 additions and 0 deletions.
  1. +3 −0 Tooling/cDscResourceDesigner/cDscResourceDesigner.psm1
@@ -347,6 +347,9 @@ function New-cDscResourceProperty

if ($ValidateSet -and ((Test-TypeIsArray $Type) -or $EmbeddedInstances.ContainsKey($Type)))
{
# No Documentation currently exists on why ValidateSet does not work.
# The Community has tested this and confirmed this an invalidate usage.
# Please see https://github.com/PowerShellOrg/DSC/issues/113
Write-Error ($localizedData.InvalidValidateSetUsageError) `
-ErrorId "InvalidValidateSetUsageError" -ErrorAction Stop
}

0 comments on commit ae4c109

Please sign in to comment.
You can’t perform that action at this time.