Commit 55c8fb2
Kai Gritun
fix: include body schema in OpenAPI docs when parse is 'none'
When using `parse: 'none'` to preserve raw request bodies, the body
schema was being omitted from generated OpenAPI documentation because
the 'none' case was not handled in the content type switch statement.
This fix adds a case for 'none' that includes all common content types
(application/json, application/x-www-form-urlencoded, multipart/form-data,
text/plain) since the raw body could be any format.
Fixes #17201 parent 9d23f7b commit 55c8fb2
File tree
3 files changed
+39
-3
lines changed- src
- test/openapi
3 files changed
+39
-3
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
939 | 950 | | |
940 | 951 | | |
941 | 952 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1279 | 1307 | | |
0 commit comments