@speclynx/apidom-ns-openapi-3-1 3.1.0 → 3.2.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,18 @@
|
|
|
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
|
+
## [3.2.1](https://github.com/speclynx/apidom/compare/v3.2.0...v3.2.1) (2026-03-09)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix issues preventing integrating with Language Service ([#143](https://github.com/speclynx/apidom/issues/143)) ([26480d7](https://github.com/speclynx/apidom/commit/26480d7a495fa57da8b39120a73f64ab2d9d61bf))
|
|
11
|
+
|
|
12
|
+
# [3.2.0](https://github.com/speclynx/apidom/compare/v3.1.0...v3.2.0) (2026-03-08)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- add keywords to all package.json files for npm search discoverability ([#142](https://github.com/speclynx/apidom/issues/142)) ([f6c2b38](https://github.com/speclynx/apidom/commit/f6c2b387db48427f0f12e3019e1bdb8d7e05dd00))
|
|
17
|
+
|
|
6
18
|
# [3.1.0](https://github.com/speclynx/apidom/compare/v3.0.0...v3.1.0) (2026-03-08)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @speclynx/apidom-ns-openapi-3-1
|
|
@@ -35904,13 +35904,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35904
35904
|
/* harmony export */ });
|
|
35905
35905
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29498);
|
|
35906
35906
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64066);
|
|
35907
|
-
/* harmony import */ var
|
|
35908
|
-
/* harmony import */ var
|
|
35909
|
-
/* harmony import */ var
|
|
35910
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
35911
|
-
/* harmony import */ var
|
|
35912
|
-
/* harmony import */ var _bases_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(74367);
|
|
35913
|
-
|
|
35907
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44673);
|
|
35908
|
+
/* harmony import */ var _elements_Responses_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71767);
|
|
35909
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21314);
|
|
35910
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(32131);
|
|
35911
|
+
/* harmony import */ var _bases_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74367);
|
|
35914
35912
|
|
|
35915
35913
|
|
|
35916
35914
|
|
|
@@ -35923,29 +35921,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35923
35921
|
/**
|
|
35924
35922
|
* @public
|
|
35925
35923
|
*/
|
|
35926
|
-
class ResponsesVisitor extends
|
|
35924
|
+
class ResponsesVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_6__.BaseMixedFieldsVisitor {
|
|
35927
35925
|
constructor(options) {
|
|
35928
35926
|
super(options);
|
|
35929
|
-
this.element = new
|
|
35927
|
+
this.element = new _elements_Responses_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
35930
35928
|
this.specPathFixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['document', 'objects', 'Responses']);
|
|
35931
35929
|
this.canSupportSpecificationExtensions = true;
|
|
35932
|
-
this.specPathPatternedFields = element => (0,
|
|
35930
|
+
this.specPathPatternedFields = element => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_4__.isReferenceLikeElement)(element) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Response'];
|
|
35933
35931
|
this.fieldPatternPredicate = value => new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${(0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(100, 600).join('|')})$`).test(String(value));
|
|
35934
35932
|
}
|
|
35935
35933
|
ObjectElement(path) {
|
|
35936
|
-
|
|
35934
|
+
_bases_mjs__WEBPACK_IMPORTED_MODULE_6__.BaseMixedFieldsVisitor.prototype.ObjectElement.call(this, path);
|
|
35937
35935
|
|
|
35938
35936
|
// decorate every ReferenceElement with metadata about their referencing type
|
|
35939
35937
|
// @ts-ignore
|
|
35940
|
-
this.element.filter(
|
|
35938
|
+
this.element.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_5__.isReferenceElement).forEach(referenceElement => {
|
|
35941
35939
|
referenceElement.meta.set('referenced-element', 'response');
|
|
35942
35940
|
});
|
|
35943
35941
|
|
|
35944
35942
|
// decorate every ResponseElement with metadata about their status code
|
|
35945
35943
|
// @ts-ignore
|
|
35946
|
-
this.element.filter(
|
|
35947
|
-
const httpStatusCode = (0,
|
|
35948
|
-
if (!this.fieldPatternPredicate(
|
|
35944
|
+
this.element.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_5__.isResponseElement).forEach((value, key) => {
|
|
35945
|
+
const httpStatusCode = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key);
|
|
35946
|
+
if (!this.fieldPatternPredicate(httpStatusCode)) return;
|
|
35949
35947
|
value.meta.set('http-status-code', httpStatusCode);
|
|
35950
35948
|
});
|
|
35951
35949
|
}
|