Skip to content

Commit

Permalink
Updated the json schema to include button objects and references in a…
Browse files Browse the repository at this point in the history
…ctivity panels.
  • Loading branch information
barnettwilliam committed Feb 5, 2024
1 parent ce0046f commit 4e41960
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions platform/schemas/panel.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
"editorPanel": {
"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": "string"
},
"buttons": {
"description": "Buttons to use instead of the default buttons defined by the panel. Can be a Button object or an Object with a ref attribute whose value is the id of a button from the panel's definition.",
"type": "array",
"items": {
"type": "object",
"oneOf": [
{"$ref": "button.schema.json"},
{"$ref": "ref.schema.json"}
]
}
}
},
"required": ["id", "name", "ref"]
Expand Down
15 changes: 15 additions & 0 deletions platform/schemas/ref.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$id": "https://mde-network.com/ep/ref.schema.json",
"$schema": "http://json-schema.org/draft-07/schema",
"title": "EP Ref1",
"description": "The MDENet education platform reference",

"type": "object",
"properties": {
"ref": {
"description": "The id of an education platform element.",
"type": "string"
}
},
"required": ["ref"]
}

0 comments on commit 4e41960

Please sign in to comment.