Files
zen/test-data/custom.json
T
stefan-gorules daecf901e6 feat: custom node (#138)
* feat: custom node

* add zen template, expose $nodes and $root

* add custom handler to go and nodejs

* add support for python, improve bindings, add error to zen template

* fix: correct binding exports for nodejs and python

* fix benchmark

* improve rust api, trim template in zen templates

* update cargo action

* update expression version

* compile action

* fix action format
2024-04-03 16:09:51 +02:00

51 lines
1.1 KiB
JSON

{
"nodes": [
{
"id": "115975ef-2f43-4e22-b553-0da6f4cc7f68",
"type": "inputNode",
"position": {
"x": 180,
"y": 240
},
"name": "Request"
},
{
"id": "138b3b11-ff46-450f-9704-3f3c712067b2",
"type": "customNode",
"position": {
"x": 470,
"y": 240
},
"name": "customNode1",
"content": {
"kind": "sum",
"config": {
"prop1": "{{ a + 10 }}"
}
}
},
{
"id": "db8797b1-bcc1-4fbf-a5d8-e7d43a181d5e",
"type": "outputNode",
"position": {
"x": 780,
"y": 240
},
"name": "Response"
}
],
"edges": [
{
"id": "05740fa7-3755-4756-b85e-bc1af2f6773b",
"sourceId": "115975ef-2f43-4e22-b553-0da6f4cc7f68",
"type": "edge",
"targetId": "138b3b11-ff46-450f-9704-3f3c712067b2"
},
{
"id": "5d89c1d6-e894-4e8a-bd13-22368c2a6bc7",
"sourceId": "138b3b11-ff46-450f-9704-3f3c712067b2",
"type": "edge",
"targetId": "db8797b1-bcc1-4fbf-a5d8-e7d43a181d5e"
}
]
}