Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 2.0 Release #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Version 2.0 Release #34
Changes from all commits
ee928c4
7d5ea6f
360932b
3fd215a
b6712d3
fb998d7
7e99336
e8bddf6
b1f23a6
f009cd0
4f59525
e1ca437
d86b94c
f076f6d
8dad391
08e09f8
ff87fd7
42a3f6c
e83f2e9
c7607a1
47a5fb8
f74986c
323b0fe
0cdd6be
4f4e4c3
b1712ec
8e3fed7
ed7a9ef
5ca92c8
a0aea6f
2820a49
778ba3b
62b3199
a165909
fac530d
cf893c5
47d109e
04e360d
2ee967f
38684cf
3a00b0f
4bff90e
30aaf59
aac0932
73c9d7e
f0762ff
2d7bec8
1c2e646
496002f
58e434a
794e05c
3c1f1bd
9f0c172
da4099d
ee74817
11d0013
38f9224
2a65f0f
1f62325
faed373
3d182cd
19a4a49
f7ff3f5
9a8e546
25527a2
5b5da72
2a1a2d1
22186d7
e48eb04
36b19ce
55423bd
2a24c55
ac4c9a6
cce954e
b156f5a
ebafae4
91403f3
b301245
4fa326a
fa86eec
a6cb9d6
3685d4c
55abec6
bc00cf6
f56300a
05252ef
bfdd40c
6e24e90
431f43c
e36f7f1
ac10e65
3c23615
a09ff68
7deb478
9f046a4
6e73739
275e942
7e34e85
9388d62
8284365
1aaed54
661f606
31f3136
72c957e
0dd2469
285fb1d
dccb9c2
95d47f9
91c5d1e
487089a
72b435d
30aa4b9
5b97c12
5c04a75
39dbcb1
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
About
The SchemaModule project grew out of a need to create PowerShell objects from a well-defined JSON schema. The functions included with this module should help a developer leverage objects and properties to create objects on-demand. The intended use-case is for this module to be used inside a script or other module to faciliate the creation of objects and ultimately validation.
Function Documentation
Below is the list of current functions and their documentation.
schema Module
Description
A PowerShell Module for working with JSON Schema documents
schema Cmdlets
Get-SchemaArrayConvertFrom-SchemaArrayThis function returns the object from an array within the Json Schema.
This function takes the schemaArray object and converts it into a PowerShell array that can be nicely output as a JSON string.
ConvertFrom-SchemaObject
This function takes the schemaObject object and converts it into a PowerShell object that can be nicely output as a JSON string.
Get-SchemaDocumentConvertTo-SchemaElementThis function takes the output of ConvertFrom-Json CmdLet and converts it into SchemaModule classes.
Find-SchemaElement
This function provides the ability to find objects within the JSON schema either by Name, by Type or by a Path.
Format-SchemaDocument
A simple schema linter
Get-SchemaDefinition
A function to follow the Definition keyword and return the referenced schema
Get-SchemaDocument
This function will return a
PowerShellschemaDocument object of the input Schema.Get-SchemaObjectGet-SchemaReferenceThis function returns an object from the Json Schema.
A function to follow the ref keyword and return the referenced schema
Get-SchemaPropertyNew-SchemaElementThis function returns one ore more properties from a Json Schema object.
Documentation
This project uses PlatyPS for framing and updating the help files and external help used by the functions.
Automation
A few things within each module are automated by psake such as the functions that are exported, as well as the README file for each module.
Syntax Checking
PSScriptAnalyzer is used to check the code against a set of standards, this ensures that the code works as expected when ran.
A function to create new SchemaModule objects
New-SchemaInteger
A function to create new Schema Integer object
New-SchemaBoolean
A function to create new Schema Boolean object
New-SchemaNumber
A function to create new Schema Number object
New-SchemaProperty
A Function to create either an object property or array item
New-SchemaString
A function to create new Schema String object
Uh oh!
There was an error while loading. Please reload this page.