We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a61fe commit dde778aCopy full SHA for dde778a
src/swagger-2.ts
@@ -71,8 +71,13 @@ function parse(spec: Swagger2, namespace: string) {
71
const [refName] = getRef(items.$ref);
72
return `${getType(items, refName)}[]`;
73
}
74
- if (items && items.type && TYPES[items.type]) {
75
- return `${TYPES[items.type]}[]`;
+ if (items && items.type) {
+ if (TYPES[items.type]) {
76
+ return `${TYPES[items.type]}[]`;
77
+ } else {
78
+ queue.push([nestedName, items]);
79
+ return `${nestedName}[]`;
80
+ }
81
82
83
if (Array.isArray(value.oneOf)) {
0 commit comments