Skip to content

Commit

Permalink
Merge pull request #160 from mdenet/fix/fix-tool-schemas
Browse files Browse the repository at this point in the history
Fix tool config schemas
  • Loading branch information
szschaler authored Jan 10, 2024
2 parents d5f26e0 + f423c6d commit 3636944
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions platform/schemas/paneldef.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"panelclass": {
"description": "The type of panel.",
"type": "string",
"enum": [ "ProgramPanel", "ConsolePanel", "OutputPanel"]
"enum": [ "ProgramPanel", "ConsolePanel", "OutputPanel", "XtextEditorPanel", "CompositePanel"]
},
"icon": {
"description": "Reference to the name of the icon to use.",
Expand All @@ -30,8 +30,11 @@
"buttons": {
"description": "For tools that create editor instances e.g. language workbenches, reference to the id of a panel of editorActivity that is the editor instance.",
"type": "array",
"$ref": "button.schema.json"
"items": {
"type": "object",
"$ref": "button.schema.json"
}
}
},
"required": ["id", "name", "panelclass", "icon"]
}
}
4 changes: 2 additions & 2 deletions platform/schemas/tool-config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"$ref": "function.schema.json"
}
},
"paneldefs": {
"panelDefs": {
"description": "The panel definition object specifies a panel defining each of the customisable areas. There are three classes of panel that determine a panel's primary behaviour: program, console, or output.",
"type": "array",
"items": {
Expand All @@ -41,4 +41,4 @@
},

"required": ["tool"]
}
}

0 comments on commit 3636944

Please sign in to comment.