swagger-client 3.26.3 → 3.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1088,7 +1088,9 @@ function bodyBuilder({
|
|
|
1088
1088
|
req,
|
|
1089
1089
|
value
|
|
1090
1090
|
}) {
|
|
1091
|
-
|
|
1091
|
+
if (value !== undefined) {
|
|
1092
|
+
req.body = value;
|
|
1093
|
+
}
|
|
1092
1094
|
}
|
|
1093
1095
|
|
|
1094
1096
|
// Add a form data object.
|
|
@@ -1135,7 +1137,9 @@ function pathBuilder({
|
|
|
1135
1137
|
value,
|
|
1136
1138
|
parameter
|
|
1137
1139
|
}) {
|
|
1138
|
-
|
|
1140
|
+
if (value !== undefined) {
|
|
1141
|
+
req.url = req.url.replace(new RegExp(`{${parameter.name}}`, 'g'), encodeURIComponent(value));
|
|
1142
|
+
}
|
|
1139
1143
|
}
|
|
1140
1144
|
|
|
1141
1145
|
// Add a query to the `query` object, which will later be stringified into the URL's search
|