swagger-client 3.26.7 → 3.26.8
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.
|
@@ -622,9 +622,18 @@ function serialize(value, mediaType) {
|
|
|
622
622
|
// Assume the user has a JSON string
|
|
623
623
|
return value;
|
|
624
624
|
}
|
|
625
|
+
if (Array.isArray(value)) {
|
|
626
|
+
value = value.map(v => {
|
|
627
|
+
try {
|
|
628
|
+
return JSON.parse(v);
|
|
629
|
+
} catch (e) {
|
|
630
|
+
return v;
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
}
|
|
625
634
|
return JSON.stringify(value);
|
|
626
635
|
}
|
|
627
|
-
return value
|
|
636
|
+
return String(value);
|
|
628
637
|
}
|
|
629
638
|
|
|
630
639
|
/***/ }),
|