@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.
- package/dist/index.js +2 -1
- 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
|
-
|
|
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) => {
|