Commit ab6a227
fix: route RequestBodyPlainText to request_body_data instead of request_body_json
RequestBodyPlainText was incorrectly grouped with RequestBodyJsonObject in
_resolve_request_body, causing plain text body values to be routed to
request_body_json. This caused a ValueError('Request body json cannot be
a string') when using RequestBodyPlainText in connector builder.
The fix routes RequestBodyPlainText to request_body_data, which correctly
handles string payloads as plain text request bodies.
Co-Authored-By: Vai Ignatavicius <vaidotas.ignatavicius@airbyte.io>1 parent 7f41401 commit ab6a227
2 files changed
Lines changed: 19 additions & 9 deletions
File tree
- airbyte_cdk/sources/declarative/requesters/request_options
- unit_tests/sources/declarative/requesters/request_options
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
Lines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | 214 | | |
223 | 215 | | |
224 | 216 | | |
| |||
345 | 337 | | |
346 | 338 | | |
347 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
348 | 356 | | |
349 | 357 | | |
350 | 358 | | |
| |||
0 commit comments