Skip to content

Commit

Permalink
Proposed schema example
Browse files Browse the repository at this point in the history
  • Loading branch information
anpetroc committed Jan 13, 2024
1 parent ea7fefa commit 66ce861
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ScreenExample.fx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Screen:
Name: sadf
32 changes: 32 additions & 0 deletions docs/canvas-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/microsoft/PowerApps-Language-Tooling/blob/master/docs/canvas-schema.json",
"title": "Microsoft Power Apps canvas screen schema",
"description": "A schema for describing the structure of a Microsoft Power Apps canvas app screen.",
"type": "object",
"properties": {
"Screen" : {
"$ref": "#/$defs/ControlInfo"
}
},
"required": [
"Screen"
],
"$defs": {
"ControlInfo": {
"type": "object",
"required": [ "Name" ],
"properties": {
"Name": {
"type": "string"
},
"controls": {
"type": "array",
"items": {
"$ref": "#/$defs/ControlInfo"
}
}
}
}
}
}

0 comments on commit 66ce861

Please sign in to comment.