89 lines
2.5 KiB
JSON
89 lines
2.5 KiB
JSON
{
|
|
"$schema": "../../shared/schemas/conductor-project.schema.json",
|
|
"schemaVersion": "0.1.0",
|
|
"project": {
|
|
"id": "proj_invalid_template_missing",
|
|
"name": "Broken Template — Missing Component",
|
|
"description": "Step 16.5 diagnostic example: the REST action references {{components.missingInput.value}} but no component named missingInput exists. The Actions & Bindings inspector should warn. Executing the action in Preview should fail cleanly.",
|
|
|
|
"pages": [
|
|
{
|
|
"id": "page_main",
|
|
"name": "Main Page",
|
|
"order": 0,
|
|
"components": [
|
|
{
|
|
"id": "btn_run",
|
|
"type": "Button",
|
|
"name": "runButton",
|
|
"position": { "x": 40, "y": 40 },
|
|
"size": { "width": 160, "height": 40 },
|
|
"properties": {
|
|
"label": "Fetch Data",
|
|
"visible": true,
|
|
"disabled": false
|
|
},
|
|
"events": [
|
|
{
|
|
"event": "onClick",
|
|
"actionId": "action_httpbin"
|
|
}
|
|
],
|
|
"bindings": []
|
|
},
|
|
{
|
|
"id": "viewer_result",
|
|
"type": "JsonViewer",
|
|
"name": "resultsViewer",
|
|
"position": { "x": 40, "y": 100 },
|
|
"size": { "width": 560, "height": 300 },
|
|
"properties": {
|
|
"label": "Response",
|
|
"visible": true,
|
|
"disabled": false
|
|
},
|
|
"events": [],
|
|
"bindings": [
|
|
{ "bindingId": "binding_action_to_viewer" }
|
|
]
|
|
}
|
|
],
|
|
"events": []
|
|
}
|
|
],
|
|
|
|
"actions": [
|
|
{
|
|
"id": "action_httpbin",
|
|
"name": "Httpbin GET (broken template)",
|
|
"description": "References {{components.missingInput.value}} — the component missingInput does not exist in this project.",
|
|
"method": "GET",
|
|
"url": "https://httpbin.org/get",
|
|
"headers": {
|
|
"Accept": "application/json"
|
|
},
|
|
"queryParameters": {
|
|
"hostname": "{{components.missingInput.value}}",
|
|
"source": "conductor-step-16-5-broken"
|
|
},
|
|
"pathParameters": {},
|
|
"bodyTemplate": "",
|
|
"authenticationType": "anonymous",
|
|
"responseMapping": []
|
|
}
|
|
],
|
|
|
|
"bindings": [
|
|
{
|
|
"id": "binding_action_to_viewer",
|
|
"source": "actions.action_httpbin.response",
|
|
"target": "components.resultsViewer.value",
|
|
"trigger": "onClick"
|
|
}
|
|
],
|
|
|
|
"variables": {},
|
|
"settings": {}
|
|
}
|
|
}
|