Skip to content

Commit

Permalink
SOF-6927: merge dev and resolve conflicts x2
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Mar 20, 2024
2 parents d83f02f + 6fb68a8 commit 7348ec5
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
9 changes: 9 additions & 0 deletions example/system/iframe_message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "from-iframe-to-host",
"action": "set-data",
"payload": {
"property": {
"name": "material"
}
}
}
35 changes: 35 additions & 0 deletions schema/system/iframe_message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$id": "system/iframe-message",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "iframe message schema",
"description": "communication message between iframe and the parent window.",
"type": "object",
"properties": {
"type": {
"description": "The type of the message to distinguish the direction of the message.",
"type": "string",
"enum": [
"from-iframe-to-host",
"from-host-to-iframe"
]
},
"action": {
"description": "The action to be performed upon receiving the message.",
"type": "string",
"enum": [
"set-data",
"get-data",
"info"
]
},
"payload": {
"description": "The content of the message with actual data.",
"type": "object"
}
},
"required": [
"type",
"action",
"payload"
]
}
2 changes: 1 addition & 1 deletion src/py/mat3ra/esse/data/examples.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/py/mat3ra/esse/data/schemas.py

Large diffs are not rendered by default.

0 comments on commit 7348ec5

Please sign in to comment.