@sebspark/openapi-typegen 1.8.4 → 1.8.5
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 +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -253,7 +253,7 @@ var generateDiscriminator = (discriminator, name) => {
|
|
|
253
253
|
var generateArray = (parsed) => {
|
|
254
254
|
const lines = [];
|
|
255
255
|
let items = generateType(parsed.items);
|
|
256
|
-
if (parsed.items.type === "enum") {
|
|
256
|
+
if (parsed.items.type === "enum" || "oneOf" in parsed.items) {
|
|
257
257
|
items = `(${items})`;
|
|
258
258
|
}
|
|
259
259
|
lines.push(`${preamble(parsed)}${items}[]`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebspark/openapi-typegen",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"chalk": "<5",
|
|
29
29
|
"change-case": "4.1.2",
|
|
30
30
|
"prettier": "3.3.2",
|
|
31
|
-
"yaml": "2.
|
|
31
|
+
"yaml": "2.5.0",
|
|
32
32
|
"yargs": "17.7.2",
|
|
33
33
|
"yarn": "1.22.22"
|
|
34
34
|
}
|