swagger-client 3.19.1 → 3.19.3
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.
|
@@ -1831,7 +1831,7 @@ const isOpenAPI30 = spec => {
|
|
|
1831
1831
|
const {
|
|
1832
1832
|
openapi
|
|
1833
1833
|
} = spec;
|
|
1834
|
-
return typeof openapi === 'string' &&
|
|
1834
|
+
return typeof openapi === 'string' && /^3\.0\.([0123])(?:-rc[012])?$/.test(openapi);
|
|
1835
1835
|
} catch {
|
|
1836
1836
|
return false;
|
|
1837
1837
|
}
|
|
@@ -1841,7 +1841,7 @@ const isOpenAPI31 = spec => {
|
|
|
1841
1841
|
const {
|
|
1842
1842
|
openapi
|
|
1843
1843
|
} = spec;
|
|
1844
|
-
return typeof openapi === 'string' &&
|
|
1844
|
+
return typeof openapi === 'string' && /^3\.1\.(?:[1-9]\d*|0)$/.test(openapi);
|
|
1845
1845
|
} catch {
|
|
1846
1846
|
return false;
|
|
1847
1847
|
}
|
|
@@ -22463,7 +22463,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22463
22463
|
/* harmony export */ });
|
|
22464
22464
|
/* harmony import */ var _value_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62389);
|
|
22465
22465
|
|
|
22466
|
-
const serializer = element => JSON.stringify((0,_value_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element));
|
|
22466
|
+
const serializer = (element, replacer, space) => JSON.stringify((0,_value_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element), replacer, space);
|
|
22467
22467
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serializer);
|
|
22468
22468
|
|
|
22469
22469
|
/***/ }),
|