docusaurus-plugin-openapi-docs 0.0.0-454 → 0.0.0-457

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/lib/index.js CHANGED
@@ -109,6 +109,7 @@ function pluginOpenAPIDocs(context, options) {
109
109
  ? fs_1.default.readFileSync(template).toString()
110
110
  : `---
111
111
  id: {{{id}}}
112
+ description: "{{{description}}}"
112
113
  {{^api}}
113
114
  sidebar_label: Introduction
114
115
  {{/api}}
@@ -59,7 +59,7 @@ async function createPostmanCollection(openapiData) {
59
59
  return await jsonToCollection(data);
60
60
  }
61
61
  function createItems(openapiData, sidebarOptions) {
62
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
62
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
63
63
  // TODO: Find a better way to handle this
64
64
  let items = [];
65
65
  const infoId = (0, kebabCase_1.default)(openapiData.info.title);
@@ -155,7 +155,7 @@ function createItems(openapiData, sidebarOptions) {
155
155
  infoId: infoId !== null && infoId !== void 0 ? infoId : "",
156
156
  unversionedId: baseId,
157
157
  title: title,
158
- description: description !== null && description !== void 0 ? description : "",
158
+ description: (_q = operationObject.description) !== null && _q !== void 0 ? _q : "",
159
159
  frontMatter: {},
160
160
  api: {
161
161
  ...defaults,
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-454",
4
+ "version": "0.0.0-457",
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": "0872ad020e8a4f053206a2b7b7ab7edcefe11276"
71
+ "gitHead": "d5c212c06c1a726af5f29ed0128be9d4e77a477c"
72
72
  }
package/src/index.ts CHANGED
@@ -143,6 +143,7 @@ export default function pluginOpenAPIDocs(
143
143
  ? fs.readFileSync(template).toString()
144
144
  : `---
145
145
  id: {{{id}}}
146
+ description: "{{{description}}}"
146
147
  {{^api}}
147
148
  sidebar_label: Introduction
148
149
  {{/api}}
@@ -194,7 +194,7 @@ function createItems(
194
194
  infoId: infoId ?? "",
195
195
  unversionedId: baseId,
196
196
  title: title,
197
- description: description ?? "",
197
+ description: operationObject.description ?? "",
198
198
  frontMatter: {},
199
199
  api: {
200
200
  ...defaults,