@swagger-api/apidom-parser-adapter-openapi-json-3-1 0.82.0 → 0.82.1
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.82.1](https://github.com/swagger-api/apidom/compare/v0.82.0...v0.82.1) (2023-11-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-json-3-1
|
|
9
|
+
|
|
6
10
|
# [0.82.0](https://github.com/swagger-api/apidom/compare/v0.81.0...v0.82.0) (2023-11-01)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-json-3-1
|
|
@@ -11141,59 +11141,6 @@ var has =
|
|
|
11141
11141
|
|
|
11142
11142
|
/***/ }),
|
|
11143
11143
|
|
|
11144
|
-
/***/ 84506:
|
|
11145
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
11146
|
-
|
|
11147
|
-
"use strict";
|
|
11148
|
-
__webpack_require__.r(__webpack_exports__);
|
|
11149
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11150
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11151
|
-
/* harmony export */ });
|
|
11152
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45652);
|
|
11153
|
-
/* harmony import */ var _isNil_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27596);
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
/**
|
|
11157
|
-
* Returns whether or not an object or its prototype chain has a property with
|
|
11158
|
-
* the specified name
|
|
11159
|
-
*
|
|
11160
|
-
* @func
|
|
11161
|
-
* @memberOf R
|
|
11162
|
-
* @since v0.7.0
|
|
11163
|
-
* @category Object
|
|
11164
|
-
* @sig s -> {s: x} -> Boolean
|
|
11165
|
-
* @param {String} prop The name of the property to check for.
|
|
11166
|
-
* @param {Object} obj The object to query.
|
|
11167
|
-
* @return {Boolean} Whether the property exists.
|
|
11168
|
-
* @example
|
|
11169
|
-
*
|
|
11170
|
-
* function Rectangle(width, height) {
|
|
11171
|
-
* this.width = width;
|
|
11172
|
-
* this.height = height;
|
|
11173
|
-
* }
|
|
11174
|
-
* Rectangle.prototype.area = function() {
|
|
11175
|
-
* return this.width * this.height;
|
|
11176
|
-
* };
|
|
11177
|
-
*
|
|
11178
|
-
* const square = new Rectangle(2, 2);
|
|
11179
|
-
* R.hasIn('width', square); //=> true
|
|
11180
|
-
* R.hasIn('area', square); //=> true
|
|
11181
|
-
*/
|
|
11182
|
-
|
|
11183
|
-
var hasIn =
|
|
11184
|
-
/*#__PURE__*/
|
|
11185
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function hasIn(prop, obj) {
|
|
11186
|
-
if ((0,_isNil_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
|
|
11187
|
-
return false;
|
|
11188
|
-
}
|
|
11189
|
-
|
|
11190
|
-
return prop in obj;
|
|
11191
|
-
});
|
|
11192
|
-
|
|
11193
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hasIn);
|
|
11194
|
-
|
|
11195
|
-
/***/ }),
|
|
11196
|
-
|
|
11197
11144
|
/***/ 78152:
|
|
11198
11145
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
11199
11146
|
|
|
@@ -17655,10 +17602,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17655
17602
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17656
17603
|
/* harmony export */ });
|
|
17657
17604
|
/* harmony import */ var _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21427);
|
|
17658
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39723);
|
|
17659
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84506);
|
|
17660
|
-
|
|
17661
|
-
|
|
17662
17605
|
|
|
17663
17606
|
class ApiDOMAggregateError extends _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_0__ {
|
|
17664
17607
|
constructor(errors, message, options) {
|
|
@@ -17675,15 +17618,15 @@ class ApiDOMAggregateError extends _babel_runtime_corejs3_core_js_aggregate_erro
|
|
|
17675
17618
|
|
|
17676
17619
|
/**
|
|
17677
17620
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
17678
|
-
* Node.js
|
|
17621
|
+
* Node.js >= 16.9.0 supports error causes natively.
|
|
17679
17622
|
*/
|
|
17680
|
-
if (
|
|
17623
|
+
if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
|
17681
17624
|
const {
|
|
17682
17625
|
cause
|
|
17683
17626
|
} = options;
|
|
17684
17627
|
this.cause = cause;
|
|
17685
|
-
if (cause instanceof Error &&
|
|
17686
|
-
this.stack = `${this.stack}\nCAUSE: ${cause
|
|
17628
|
+
if (cause instanceof Error && 'stack' in cause) {
|
|
17629
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
|
17687
17630
|
}
|
|
17688
17631
|
}
|
|
17689
17632
|
}
|
|
@@ -17700,12 +17643,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17700
17643
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17701
17644
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17702
17645
|
/* harmony export */ });
|
|
17703
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84506);
|
|
17704
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39723);
|
|
17705
17646
|
/* harmony import */ var _ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57345);
|
|
17706
17647
|
|
|
17707
|
-
|
|
17708
|
-
|
|
17709
17648
|
class ApiDOMError extends Error {
|
|
17710
17649
|
static [Symbol.hasInstance](instance) {
|
|
17711
17650
|
// we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
|
|
@@ -17727,13 +17666,13 @@ class ApiDOMError extends Error {
|
|
|
17727
17666
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
17728
17667
|
* Node.js is >= 16.9.0 supports error causes natively.
|
|
17729
17668
|
*/
|
|
17730
|
-
if (
|
|
17669
|
+
if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
|
17731
17670
|
const {
|
|
17732
17671
|
cause
|
|
17733
17672
|
} = options;
|
|
17734
17673
|
this.cause = cause;
|
|
17735
|
-
if (cause instanceof Error &&
|
|
17736
|
-
this.stack = `${this.stack}\nCAUSE: ${cause
|
|
17674
|
+
if (cause instanceof Error && 'stack' in cause) {
|
|
17675
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
|
17737
17676
|
}
|
|
17738
17677
|
}
|
|
17739
17678
|
}
|
|
@@ -17750,15 +17689,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17750
17689
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17751
17690
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17752
17691
|
/* harmony export */ });
|
|
17753
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54783);
|
|
17754
17692
|
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7471);
|
|
17755
17693
|
|
|
17756
|
-
|
|
17757
17694
|
class ApiDOMStructuredError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17758
17695
|
constructor(message, structuredOptions) {
|
|
17759
17696
|
super(message, structuredOptions);
|
|
17760
|
-
if (typeof structuredOptions
|
|
17761
|
-
|
|
17697
|
+
if (structuredOptions != null && typeof structuredOptions === 'object') {
|
|
17698
|
+
const {
|
|
17699
|
+
cause,
|
|
17700
|
+
...causelessOptions
|
|
17701
|
+
} = structuredOptions;
|
|
17702
|
+
Object.assign(this, causelessOptions);
|
|
17762
17703
|
}
|
|
17763
17704
|
}
|
|
17764
17705
|
}
|
|
@@ -22660,7 +22601,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22660
22601
|
/* harmony export */ isSchemaElement: () => (/* binding */ isSchemaElement),
|
|
22661
22602
|
/* harmony export */ isSecurityRequirementElement: () => (/* binding */ isSecurityRequirementElement),
|
|
22662
22603
|
/* harmony export */ isServerElement: () => (/* binding */ isServerElement),
|
|
22663
|
-
/* harmony export */ isServerVariableElement: () => (/* binding */ isServerVariableElement)
|
|
22604
|
+
/* harmony export */ isServerVariableElement: () => (/* binding */ isServerVariableElement),
|
|
22605
|
+
/* harmony export */ isServersElement: () => (/* binding */ isServersElement)
|
|
22664
22606
|
/* harmony export */ });
|
|
22665
22607
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63801);
|
|
22666
22608
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(36903);
|
|
@@ -22689,6 +22631,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22689
22631
|
/* harmony import */ var _elements_Server_mjs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(15241);
|
|
22690
22632
|
/* harmony import */ var _elements_ServerVariable_mjs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(46380);
|
|
22691
22633
|
/* harmony import */ var _elements_MediaType_mjs__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(12928);
|
|
22634
|
+
/* harmony import */ var _elements_nces_Servers_mjs__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(69106);
|
|
22692
22635
|
|
|
22693
22636
|
|
|
22694
22637
|
|
|
@@ -22713,6 +22656,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22713
22656
|
|
|
22714
22657
|
|
|
22715
22658
|
|
|
22659
|
+
// NCE types
|
|
22716
22660
|
|
|
22717
22661
|
const isCallbackElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
22718
22662
|
hasBasicElementProps,
|
|
@@ -22918,6 +22862,14 @@ const isMediaTypeElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_
|
|
|
22918
22862
|
}) => {
|
|
22919
22863
|
return element => element instanceof _elements_MediaType_mjs__WEBPACK_IMPORTED_MODULE_26__["default"] || hasBasicElementProps(element) && isElementType('mediaType', element) && primitiveEq('object', element);
|
|
22920
22864
|
});
|
|
22865
|
+
const isServersElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
22866
|
+
hasBasicElementProps,
|
|
22867
|
+
isElementType,
|
|
22868
|
+
primitiveEq,
|
|
22869
|
+
hasClass
|
|
22870
|
+
}) => {
|
|
22871
|
+
return element => element instanceof _elements_nces_Servers_mjs__WEBPACK_IMPORTED_MODULE_27__["default"] || hasBasicElementProps(element) && isElementType('array', element) && primitiveEq('array', element) && hasClass('servers', element);
|
|
22872
|
+
});
|
|
22921
22873
|
|
|
22922
22874
|
/***/ }),
|
|
22923
22875
|
|
|
@@ -31232,11 +31184,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31232
31184
|
/* harmony export */ });
|
|
31233
31185
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84651);
|
|
31234
31186
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36903);
|
|
31187
|
+
/* harmony import */ var _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77365);
|
|
31235
31188
|
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36642);
|
|
31236
31189
|
/* harmony import */ var _namespace_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91893);
|
|
31237
31190
|
|
|
31238
31191
|
|
|
31239
31192
|
|
|
31193
|
+
|
|
31240
31194
|
const createToolbox = () => {
|
|
31241
31195
|
const namespace = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.createNamespace)(_namespace_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
31242
31196
|
const predicates = {
|
|
@@ -31244,6 +31198,7 @@ const createToolbox = () => {
|
|
|
31244
31198
|
isStringElement: _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.isStringElement,
|
|
31245
31199
|
isArrayElement: _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.isArrayElement,
|
|
31246
31200
|
isObjectElement: _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.isObjectElement,
|
|
31201
|
+
isServersElement: _swagger_api_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_4__.isServersElement,
|
|
31247
31202
|
includesClasses: _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.includesClasses
|
|
31248
31203
|
};
|
|
31249
31204
|
return {
|