Commit 4343be9
authored
fix: add proper a2a request body documentation to Swagger UI (#276)
When using `A2AFastAPIApplication`, the A2A request endpoint showed no
space to fill in a request body in Swagger UI.
This made it impossible to use Swagger UI to test the endpoint directly,
since you couldn't input the necessary data.
**Changes**
- Added proper request body documentation using `A2ARequest` model
- Now shows a text box to enter JSON requests and an example of the
expected request format
**Before**
<img width="1705" alt="image"
src="https://github.com/user-attachments/assets/8450d6f3-08b9-4b32-9fb0-4af3c1e66208"
/>
**After**
<img width="1484" alt="image"
src="https://github.com/user-attachments/assets/86911b91-6a66-470c-836e-73158a613380"
/>
Fixes #2741 parent fda4223 commit 4343be9
1 file changed
+36
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
73 | 90 | | |
74 | 91 | | |
75 | 92 | | |
| |||
95 | 112 | | |
96 | 113 | | |
97 | 114 | | |
98 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
99 | 132 | | |
100 | 133 | | |
101 | 134 | | |
| |||
0 commit comments