Skip to content

Commit e67f358

Browse files
author
James Brundage
committed
Adding JSONSchema transpiler example (re #274)
1 parent e6d32c6 commit e67f358

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Transpilers/Protocols/JSONSchema.Protocol.psx.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
Converts a json schema to PowerShell.
66
.EXAMPLE
77
jsonschema https://aka.ms/terminal-profiles-schema#/$defs/Profile
8+
.EXAMPLE
9+
{
10+
[JSONSchema(SchemaURI='https://aka.ms/terminal-profiles-schema#/$defs/Profile')]
11+
param()
12+
}.Transpile()
13+
814
#>
915
[ValidateScript({
1016
$commandAst = $_

0 commit comments

Comments
 (0)