docusaurus-plugin-openapi-docs 0.0.0-533 → 0.0.0-534

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.
@@ -58,7 +58,13 @@ function serializer(replacer, cycleReplacer) {
58
58
  }
59
59
  function convertSwagger2OpenAPI(spec) {
60
60
  console.warn("[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0");
61
- return new Promise((resolve, reject) => (0, swagger2openapi_1.convertObj)(spec, { patch: true, warnOnly: true, text: "{}", anchors: true }, (err, res) => {
61
+ return new Promise((resolve, reject) => (0, swagger2openapi_1.convertObj)(spec, {
62
+ patch: true,
63
+ warnOnly: true,
64
+ text: "{}",
65
+ anchors: true,
66
+ resolveInternal: true,
67
+ }, (err, res) => {
62
68
  // TODO: log any warnings
63
69
  if (err) {
64
70
  return reject(err);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-533",
4
+ "version": "0.0.0-534",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=14"
70
70
  },
71
- "gitHead": "ca4229525685eed0dcf9c886d4f0d3ec510e175b"
71
+ "gitHead": "c9fa70b8fd3e1241f87011dec6010bb5ccb63ad5"
72
72
  }
@@ -66,7 +66,13 @@ export function convertSwagger2OpenAPI(spec: object) {
66
66
  return new Promise((resolve, reject) =>
67
67
  convertObj(
68
68
  spec,
69
- { patch: true, warnOnly: true, text: "{}", anchors: true },
69
+ {
70
+ patch: true,
71
+ warnOnly: true,
72
+ text: "{}",
73
+ anchors: true,
74
+ resolveInternal: true,
75
+ },
70
76
  (err: any, res: any) => {
71
77
  // TODO: log any warnings
72
78
  if (err) {