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.
2 parents f40acb5 + 1dd7901 commit 1e6f5cfCopy full SHA for 1e6f5cf
packages/openapi-generator/src/optimize.ts
@@ -68,7 +68,9 @@ function mergeUnions(schema: Schema): Schema {
68
69
return {
70
type: 'union',
71
- schemas: Array.from(resultingSchemas).map((s) => JSON.parse(s)),
+ schemas: Array.from(resultingSchemas)
72
+ .filter((s) => s != undefined)
73
+ .map((s) => JSON.parse(s)),
74
};
75
}
76
0 commit comments