Files
zen/test-data/graphs/expression-fields.json
stefan-gorulesandIvan Miletic 47812143a0 feat: passthrough nodes (#261)
* feat: passthrough nodes

* update bindings

* update model

* update exclusion

* fix merge strategy

* fix

* fix merge

* add tests

* fix walk

* fix merge

* fix

* fix: add tests

* fix types

---------

Co-authored-by: Ivan Miletic <vnmiletic@gmail.com>
2024-10-23 15:59:31 +02:00

94 lines
1.8 KiB
JSON

{
"tests": [
{
"input": {
"customer": {
"firstName": "John",
"lastName": "Doe",
"age": 30
},
"order": {
"id": "ORD-001",
"total": 100
}
},
"output": {
"customer": {
"firstName": "John",
"lastName": "Doe",
"age": 30,
"fullName": "John Doe"
},
"order": {
"id": "ORD-001",
"total": 100
}
}
},
{
"input": {
"customer": {
"firstName": "Jane",
"lastName": "Smith",
"age": 25
},
"order": {
"id": "ORD-002",
"total": 150
}
},
"output": {
"customer": {
"firstName": "Jane",
"lastName": "Smith",
"age": 25,
"fullName": "Jane Smith"
},
"order": {
"id": "ORD-002",
"total": 150
}
}
}
],
"nodes": [
{
"type": "inputNode",
"id": "input-node",
"name": "request",
"position": {
"x": 100,
"y": 100
}
},
{
"type": "expressionNode",
"id": "expression-node-1",
"name": "customerFullName",
"position": {
"x": 300,
"y": 100
},
"content": {
"inputField": "customer",
"outputPath": "customer",
"expressions": [
{
"id": "07795ded-cb9b-4165-9b5e-783b066dda61",
"key": "fullName",
"value": "`${firstName} ${lastName}`"
}
],
"passThrough": true
}
}
],
"edges": [
{
"id": "edge-1",
"sourceId": "input-node",
"targetId": "expression-node-1",
"type": "edge"
}
]
}