@speclynx/apidom-parser-adapter-openapi-json-2 2.13.1 → 3.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speclynx/apidom-parser-adapter-openapi-json-2",
3
- "version": "2.13.1",
3
+ "version": "3.1.0",
4
4
  "description": "Parser adapter for parsing JSON documents into OpenAPI 2.0 namespace.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -39,10 +39,10 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@babel/runtime-corejs3": "^7.28.4",
42
- "@speclynx/apidom-core": "2.13.1",
43
- "@speclynx/apidom-datamodel": "2.13.1",
44
- "@speclynx/apidom-ns-openapi-2": "2.13.1",
45
- "@speclynx/apidom-parser-adapter-json": "2.13.1",
42
+ "@speclynx/apidom-core": "3.1.0",
43
+ "@speclynx/apidom-datamodel": "3.1.0",
44
+ "@speclynx/apidom-ns-openapi-2": "3.1.0",
45
+ "@speclynx/apidom-parser-adapter-json": "3.1.0",
46
46
  "ramda": "~0.32.0",
47
47
  "ramda-adjunct": "^6.0.0"
48
48
  },
@@ -56,5 +56,5 @@
56
56
  "README.md",
57
57
  "CHANGELOG.md"
58
58
  ],
59
- "gitHead": "7a15e77dd776ef85f3e4421f0b4be52362b16f68"
59
+ "gitHead": "c0807dd0b7770eaaf594bd0013be65e2c28c504a"
60
60
  }
package/src/adapter.cjs CHANGED
@@ -36,7 +36,10 @@ const parse = async (source, options = {}) => {
36
36
  result
37
37
  } = parseResultElement;
38
38
  if ((0, _ramdaAdjunct.isNotUndefined)(result)) {
39
- const swaggerElement = (0, _apidomNsOpenapi.refractSwagger)(result, refractorOpts);
39
+ const swaggerElement = (0, _apidomNsOpenapi.refractSwagger)(result, {
40
+ consume: true,
41
+ ...refractorOpts
42
+ });
40
43
  swaggerElement.classes.push('result');
41
44
  parseResultElement.replaceResult(swaggerElement);
42
45
  }
package/src/adapter.mjs CHANGED
@@ -29,7 +29,10 @@ export const parse = async (source, options = {}) => {
29
29
  result
30
30
  } = parseResultElement;
31
31
  if (isNotUndefined(result)) {
32
- const swaggerElement = refractSwagger(result, refractorOpts);
32
+ const swaggerElement = refractSwagger(result, {
33
+ consume: true,
34
+ ...refractorOpts
35
+ });
33
36
  swaggerElement.classes.push('result');
34
37
  parseResultElement.replaceResult(swaggerElement);
35
38
  }