Skip to content

Commit 761106e

Browse files
Merge pull request #10 from SchemaModule/issue-6
Issue 6
2 parents c96ad70 + 1d978da commit 761106e

File tree

2 files changed

+0
-75
lines changed

2 files changed

+0
-75
lines changed

docs/New-SchemaRootDocument.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

schema/schema.psm1

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,4 @@ function Get-Property {
115115
$Schema.properties;
116116
}
117117
}
118-
}
119-
function New-RootDocument {
120-
param (
121-
[string]$Path
122-
)
123-
124-
try {
125-
$ErrorActionPreference = 'Stop';
126-
$Error.Clear();
127-
128-
$Schema = Get-Document -Path $Path;
129-
$rootDocument = Get-Object - $Schema;
130-
$rootDocument | Add-Member -MemberType NoteProperty -Name '$schema' -Value ($Schema.'$id')
131-
return $rootDocument
132-
}
133-
catch {
134-
throw $_;
135-
}
136118
}

0 commit comments

Comments
 (0)