Skip to content

Commit 8979703

Browse files
committed
Fix JSON fragment
1 parent 380daec commit 8979703

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

docs/a2ui_protocol.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -434,26 +434,35 @@ This message provides a feedback mechanism for the server. It is sent when the c
434434

435435
```json
436436
{
437-
"id": "submit_btn_text",
438-
"component": {
439-
"Text": {
440-
"text": { "literalString": "Submit" }
441-
}
442-
}
443-
},
444-
{
445-
"id": "submit_btn",
446-
"component": {
447-
"Button": {
448-
"child": "submit_btn_text",
449-
"action": {
450-
"name": "submit_form",
451-
"context": [
452-
{ "key": "userInput", "value": { "path": "form.textField" } },
453-
{ "key": "formId", "value": { "literalString": "f-123" } }
454-
]
437+
"surfaceUpdate": {
438+
"components": [
439+
{
440+
"id": "submit_btn_text",
441+
"component": {
442+
"Text": {
443+
"text": { "literalString": "Submit" }
444+
}
445+
}
446+
},
447+
{
448+
"id": "submit_btn",
449+
"component": {
450+
"Button": {
451+
"child": "submit_btn_text",
452+
"action": {
453+
"name": "submit_form",
454+
"context": [
455+
{
456+
"key": "userInput",
457+
"value": { "path": "form.textField" }
458+
},
459+
{ "key": "formId", "value": { "literalString": "f-123" } }
460+
]
461+
}
462+
}
463+
}
455464
}
456-
}
465+
]
457466
}
458467
}
459468
```

0 commit comments

Comments
 (0)