Latest Version | Azure Pipelines | PowerShell Gallery | Github Release | Issues | Forks | License |
---|---|---|---|---|---|---|
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.
Latest Version | PowerShell Gallery | Build Status | Project Board | Issues | License |
---|---|---|---|---|---|
schema Module
Description
A PowerShell Module for working with JSON Schema documents
schema Cmdlets
This 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.
This 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.
This function returns an object from the Json Schema.
A function to follow the ref keyword and return the referenced schema
This 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
0 commit comments