@sebspark/openapi-typegen 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -208,7 +208,8 @@ var generateObject = (parsed) => {
208
208
  };
209
209
  var generateArray = (parsed) => {
210
210
  const lines = [];
211
- lines.push(`${preamble(parsed)}${parsed.items.type}[]`);
211
+ const items = generateType(parsed.items);
212
+ lines.push(`${preamble(parsed)}${items}[]`);
212
213
  return lines.join("\n");
213
214
  };
214
215
  var generateEnum = (parsed) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/openapi-typegen",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",