We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b8c473 commit 4be1a1cCopy full SHA for 4be1a1c
libV2/schemaUtils.js
@@ -1699,8 +1699,17 @@ let QUERYPARAM = 'query',
1699
}
1700
1701
1702
- // Fallback
1703
- return rawModeRequestBody;
+ // Legacy fallback
+ // If preferredRequestBodyType is not provided, return the first available request body
1704
+ if (encodedRequestBody) {
1705
+ return encodedRequestBody;
1706
+ }
1707
+ else if (formDataRequestBody) {
1708
+ return formDataRequestBody;
1709
1710
+ else {
1711
+ return rawModeRequestBody;
1712
1713
},
1714
1715
resolvePathItemParams = (context, operationParam, pathParam) => {
0 commit comments