@swagger-api/apidom-parser-adapter-asyncapi-json-2 1.0.0-rc.3 → 1.0.0
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,14 @@
|
|
|
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
|
+
# [1.0.0](https://github.com/swagger-api/apidom/compare/v1.0.0-rc.4...v1.0.0) (2025-12-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-2
|
|
9
|
+
|
|
10
|
+
# [1.0.0-rc.4](https://github.com/swagger-api/apidom/compare/v1.0.0-rc.3...v1.0.0-rc.4) (2025-11-25)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-2
|
|
13
|
+
|
|
6
14
|
# [1.0.0-rc.3](https://github.com/swagger-api/apidom/compare/v1.0.0-rc.2...v1.0.0-rc.3) (2025-11-07)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-asyncapi-json-2
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
Under the hood this adapter uses [@swagger-api/apidom-parser-adapter-json](https://github.com/swagger-api/apidom/tree/main/packages/apidom-parser-adapter-json)
|
|
15
|
-
to parse a source string into generic ApiDOM in [base ApiDOM namespace](https://github.com/swagger-api/apidom/tree/main/packages/apidom#base-namespace)
|
|
15
|
+
to parse a source string into generic ApiDOM in [base ApiDOM namespace](https://github.com/swagger-api/apidom/tree/main/packages/apidom-core#base-namespace)
|
|
16
16
|
which is then refracted with [AsyncApi 2.x.y Refractors](https://github.com/swagger-api/apidom/tree/main/packages/apidom-ns-asyncapi-2#refractors).
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
@@ -54,7 +54,7 @@ Defines list of media types that this parser adapter recognizes.
|
|
|
54
54
|
|
|
55
55
|
### detect
|
|
56
56
|
|
|
57
|
-
[Detection](https://github.com/swagger-api/apidom/blob/main/packages/apidom-parser-adapter-asyncapi-json-2/src/adapter.ts#
|
|
57
|
+
[Detection](https://github.com/swagger-api/apidom/blob/main/packages/apidom-parser-adapter-asyncapi-json-2/src/adapter.ts#L18) is based on a regular expression matching required AsyncApi 2.6.0 specification symbols in JSON format.
|
|
58
58
|
|
|
59
59
|
### namespace
|
|
60
60
|
|
|
@@ -2788,7 +2788,7 @@ const isAsyncApi2Element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_
|
|
|
2788
2788
|
primitiveEq,
|
|
2789
2789
|
hasClass
|
|
2790
2790
|
}) => {
|
|
2791
|
-
return element => element instanceof _elements_AsyncApi2_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] || hasBasicElementProps(element) && isElementType('asyncApi2', element) && primitiveEq('object', element) && hasClass('api', element);
|
|
2791
|
+
return element => element instanceof _elements_AsyncApi2_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] && element.constructor === _elements_AsyncApi2_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] || hasBasicElementProps(element) && isElementType('asyncApi2', element) && primitiveEq('object', element) && hasClass('api', element);
|
|
2792
2792
|
});
|
|
2793
2793
|
|
|
2794
2794
|
/**
|