swagger-client 3.18.3 → 3.18.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.
|
@@ -4451,15 +4451,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4451
4451
|
});
|
|
4452
4452
|
patches.push.apply(patches, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(absoluteRefPatches));
|
|
4453
4453
|
return undefined;
|
|
4454
|
-
}); //
|
|
4454
|
+
}); // If there was an example in the original definition,
|
|
4455
|
+
// keep it instead of merging with examples from other schema
|
|
4456
|
+
|
|
4457
|
+
if (originalDefinitionObj.example) {
|
|
4458
|
+
var _context2;
|
|
4459
|
+
|
|
4460
|
+
// Delete other schema examples
|
|
4461
|
+
patches.push(specmap.remove(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context2 = []).call(_context2, parent, 'example')));
|
|
4462
|
+
} // Merge back the values from the original definition
|
|
4463
|
+
|
|
4455
4464
|
|
|
4456
4465
|
patches.push(specmap.mergeDeep(parent, originalDefinitionObj)); // If there was not an original $$ref value, make sure to remove
|
|
4457
4466
|
// any $$ref value that may exist from the result of `allOf` merges
|
|
4458
4467
|
|
|
4459
4468
|
if (!originalDefinitionObj.$$ref) {
|
|
4460
|
-
var
|
|
4469
|
+
var _context3;
|
|
4461
4470
|
|
|
4462
|
-
patches.push(specmap.remove(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(
|
|
4471
|
+
patches.push(specmap.remove(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context3 = []).call(_context3, parent, '$$ref')));
|
|
4463
4472
|
}
|
|
4464
4473
|
|
|
4465
4474
|
return patches;
|