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 881cc80 commit 76005e0Copy full SHA for 76005e0
plugins/typescript/src/core/schemaToTypeAliasDeclaration.ts
@@ -227,7 +227,7 @@ export const getType = (
227
const members: ts.TypeElement[] = Object.entries(
228
schema.properties || {}
229
).map(([key, property]) => {
230
- const isEnum = "enum" in property && useEnumsConfigBase;
+ const isEnum = typeof property === "object" && "enum" in property && useEnumsConfigBase;
231
232
const propertyNode = f.createPropertySignature(
233
undefined,
0 commit comments