docusaurus-plugin-openapi-docs 0.0.0-965 → 0.0.0-967

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.
@@ -149,7 +149,7 @@ const sampleRequestFromSchema = (schema = {}) => {
149
149
  if (Array.isArray(items === null || items === void 0 ? void 0 : items.oneOf)) {
150
150
  return items === null || items === void 0 ? void 0 : items.oneOf.map((item) => (0, exports.sampleRequestFromSchema)(item));
151
151
  }
152
- return [(0, exports.sampleRequestFromSchema)(items)];
152
+ return normalizeArray((0, exports.sampleRequestFromSchema)(items));
153
153
  }
154
154
  if (schemaCopy.enum) {
155
155
  if (schemaCopy.default) {
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-965",
4
+ "version": "0.0.0-967",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -65,5 +65,5 @@
65
65
  "engines": {
66
66
  "node": ">=14"
67
67
  },
68
- "gitHead": "9343614a857930ed5667a6b6e7ff66b1781e55e3"
68
+ "gitHead": "922de22ba94106753b5a9d2d70c90320940e447a"
69
69
  }
@@ -181,7 +181,7 @@ export const sampleRequestFromSchema = (schema: SchemaObject = {}): any => {
181
181
  return items?.oneOf.map((item: any) => sampleRequestFromSchema(item));
182
182
  }
183
183
 
184
- return [sampleRequestFromSchema(items)];
184
+ return normalizeArray(sampleRequestFromSchema(items));
185
185
  }
186
186
 
187
187
  if (schemaCopy.enum) {