Open X-Guardian opened 4 years ago
Did you mean to post this in dsccommunity/DscResource.Test ?
Afraid I can't transfer this as it's not allowed by GitHub:
You can only transfer issues between repositories owned by the same user or organization account.
No, these functions don't yet exist in DscResource.Test.
Details of the problem, bug, or enhancement
Following on from PR #354 and #358 , Array DataTypes are now output differently from
New-DscResourceWikiSite
in theWikiPages
module.For a MOF that contains a string array property, previously
New-DscResourceWikiSite
would output a datatype ofString[]
. Now it outputs a datatype ofStringArray[]
.This is because
Get-MofSchemaObject
used to output the DataType property as aSystem.String
object, but now it is aMicrosoft.Management.Infrastructure.CimType
object which has aToString
value ofStringArray
for arrays rather thenString
as it was previously.Suggested solution to the issue
New-DscResourceWikiSite
could be changed to either remove the logic that adds[]
to array datatypes, or strip theArray
part of the string depending on what output is decided upon.