Skip to content

Commit

Permalink
update: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Mar 19, 2024
1 parent 76c1a51 commit 9e748a5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions schema/system/iframe_message.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "iframe message schema",
"description": "communication message between iframe and the parent window.",
"examples": [
{
"type": "from-iframe-to-host",
"action": "set-data",
"payload": {
"material": {"name": "material1", "lattice": "material", "basis": "data1"}
}
},
{
"type": "from-host-to-iframe",
"action": "get-data",
"payload": {
"key": "value"
}
},
{
"type": "from-iframe-to-host",
"action": "info",
"payload": {
"status": "ready"
}
}
],
"type": "object",
"properties": {
"type": {
Expand Down
2 changes: 1 addition & 1 deletion src/py/mat3ra/esse/data/schemas.py

Large diffs are not rendered by default.

0 comments on commit 9e748a5

Please sign in to comment.