Skip to content

Commit aa5f681

Browse files
Merge pull request #20 from SchemaModule/issue-17
Updated all write-verbose schemadocument lines to use out-string so t…
2 parents f7e69c0 + 71b9bc0 commit aa5f681

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

schema/schema.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Get-Object {
5151
)
5252

5353
process {
54-
Write-Verbose $SchemaDocument;
54+
Write-Verbose ($SchemaDocument |Out-String);
5555
$Properties = $SchemaDocument.properties | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name;
5656
Write-Verbose "Setting up output object";
5757
$Members = @{};
@@ -99,7 +99,7 @@ function Get-Array {
9999
)
100100

101101
process {
102-
Write-Verbose $SchemaDocument;
102+
Write-Verbose ($SchemaDocument |Out-String);
103103
$Properties = $SchemaDocument.items.anyOf.properties | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name;
104104
Write-Verbose "Setting up output object";
105105
$Members = @{};
@@ -148,7 +148,7 @@ function Get-Property {
148148
)
149149

150150
process {
151-
Write-Verbose $SchemaDocument;
151+
Write-Verbose ($SchemaDocument |Out-String);
152152
Write-Verbose $Name;
153153
if ($Name) {
154154
Write-Verbose "Return specific Property";

0 commit comments

Comments
 (0)