|
58 | 58 | } |
59 | 59 | }, |
60 | 60 | "body": { |
61 | | - "type": "string", |
| 61 | + "oneOf": [ |
| 62 | + { |
| 63 | + "type": "string" |
| 64 | + }, |
| 65 | + { |
| 66 | + "type": "object" |
| 67 | + }, |
| 68 | + { |
| 69 | + "type": "array" |
| 70 | + }, |
| 71 | + { |
| 72 | + "type": "number" |
| 73 | + }, |
| 74 | + { |
| 75 | + "type": "boolean" |
| 76 | + }, |
| 77 | + { |
| 78 | + "type": "null" |
| 79 | + } |
| 80 | + ], |
62 | 81 | "title": "Body", |
63 | | - "description": "The raw or parsed request body", |
64 | | - "example": "{\"status\": \"success\"}" |
| 82 | + "description": "The raw request body as text, or a parsed/offloaded JSON payload", |
| 83 | + "example": { |
| 84 | + "status": "success" |
| 85 | + } |
65 | 86 | }, |
66 | 87 | "contentType": { |
67 | 88 | "type": "string", |
|
106 | 127 | "example": 200 |
107 | 128 | }, |
108 | 129 | "responseBody": { |
109 | | - "type": "string", |
| 130 | + "oneOf": [ |
| 131 | + { |
| 132 | + "type": "string" |
| 133 | + }, |
| 134 | + { |
| 135 | + "type": "object" |
| 136 | + }, |
| 137 | + { |
| 138 | + "type": "array" |
| 139 | + }, |
| 140 | + { |
| 141 | + "type": "number" |
| 142 | + }, |
| 143 | + { |
| 144 | + "type": "boolean" |
| 145 | + }, |
| 146 | + { |
| 147 | + "type": "null" |
| 148 | + } |
| 149 | + ], |
110 | 150 | "title": "Response Body", |
111 | | - "description": "Body returned to the webhook sender", |
112 | | - "example": "{\"received\": true}" |
| 151 | + "description": "Response body returned to the webhook sender as text or JSON", |
| 152 | + "example": { |
| 153 | + "received": true |
| 154 | + } |
113 | 155 | }, |
114 | 156 | "responseHeaders": { |
115 | 157 | "type": "object", |
116 | 158 | "title": "Response Headers", |
117 | 159 | "description": "Headers returned to the webhook sender", |
118 | | - "example": { "content-type": "application/json" } |
| 160 | + "example": { |
| 161 | + "content-type": "application/json" |
| 162 | + } |
119 | 163 | }, |
120 | 164 | "signatureProvider": { |
121 | 165 | "type": "string", |
|
153 | 197 | "display": { |
154 | 198 | "component": "table", |
155 | 199 | "properties": { |
156 | | - "timestamp": { "label": "Time", "format": "date" }, |
157 | | - "requestId": { "label": "Req ID" }, |
158 | | - "signatureValid": { "label": "Sig", "format": "boolean" }, |
159 | | - "webhookId": { "label": "Webhook ID" }, |
160 | | - "method": { "label": "Method" }, |
161 | | - "statusCode": { "label": "Status" }, |
162 | | - "contentType": { "label": "Content-Type" }, |
163 | | - "size": { "label": "Size (Bytes)" }, |
164 | | - "processingTime": { "label": "Latency (ms)" }, |
165 | | - "remoteIp": { "label": "Source IP" }, |
166 | | - "signatureProvider": { "label": "Provider" } |
| 200 | + "timestamp": { |
| 201 | + "label": "Time", |
| 202 | + "format": "date" |
| 203 | + }, |
| 204 | + "requestId": { |
| 205 | + "label": "Req ID" |
| 206 | + }, |
| 207 | + "signatureValid": { |
| 208 | + "label": "Sig", |
| 209 | + "format": "boolean" |
| 210 | + }, |
| 211 | + "webhookId": { |
| 212 | + "label": "Webhook ID" |
| 213 | + }, |
| 214 | + "method": { |
| 215 | + "label": "Method" |
| 216 | + }, |
| 217 | + "statusCode": { |
| 218 | + "label": "Status" |
| 219 | + }, |
| 220 | + "contentType": { |
| 221 | + "label": "Content-Type" |
| 222 | + }, |
| 223 | + "size": { |
| 224 | + "label": "Size (Bytes)" |
| 225 | + }, |
| 226 | + "processingTime": { |
| 227 | + "label": "Latency (ms)" |
| 228 | + }, |
| 229 | + "remoteIp": { |
| 230 | + "label": "Source IP" |
| 231 | + }, |
| 232 | + "signatureProvider": { |
| 233 | + "label": "Provider" |
| 234 | + } |
167 | 235 | } |
168 | 236 | } |
169 | 237 | }, |
|
189 | 257 | "display": { |
190 | 258 | "component": "table", |
191 | 259 | "properties": { |
192 | | - "timestamp": { "label": "Time", "format": "date" }, |
193 | | - "requestId": { "label": "Req ID" }, |
194 | | - "signatureValid": { "label": "Sig", "format": "boolean" }, |
195 | | - "method": { "label": "Method" }, |
196 | | - "statusCode": { "label": "Status" }, |
197 | | - "query": { "label": "Query", "format": "object" }, |
198 | | - "headers": { "label": "Headers", "format": "object" }, |
199 | | - "body": { "label": "Body", "format": "text" }, |
200 | | - "responseBody": { "label": "Res Body", "format": "text" }, |
201 | | - "responseHeaders": { "label": "Res Headers", "format": "object" }, |
202 | | - "signatureProvider": { "label": "Sig Provider" }, |
203 | | - "signatureError": { "label": "Sig Error" } |
| 260 | + "timestamp": { |
| 261 | + "label": "Time", |
| 262 | + "format": "date" |
| 263 | + }, |
| 264 | + "requestId": { |
| 265 | + "label": "Req ID" |
| 266 | + }, |
| 267 | + "signatureValid": { |
| 268 | + "label": "Sig", |
| 269 | + "format": "boolean" |
| 270 | + }, |
| 271 | + "method": { |
| 272 | + "label": "Method" |
| 273 | + }, |
| 274 | + "statusCode": { |
| 275 | + "label": "Status" |
| 276 | + }, |
| 277 | + "query": { |
| 278 | + "label": "Query", |
| 279 | + "format": "object" |
| 280 | + }, |
| 281 | + "headers": { |
| 282 | + "label": "Headers", |
| 283 | + "format": "object" |
| 284 | + }, |
| 285 | + "body": { |
| 286 | + "label": "Body", |
| 287 | + "format": "text" |
| 288 | + }, |
| 289 | + "responseBody": { |
| 290 | + "label": "Res Body", |
| 291 | + "format": "text" |
| 292 | + }, |
| 293 | + "responseHeaders": { |
| 294 | + "label": "Res Headers", |
| 295 | + "format": "object" |
| 296 | + }, |
| 297 | + "signatureProvider": { |
| 298 | + "label": "Sig Provider" |
| 299 | + }, |
| 300 | + "signatureError": { |
| 301 | + "label": "Sig Error" |
| 302 | + } |
204 | 303 | } |
205 | 304 | } |
206 | 305 | } |
|
0 commit comments