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 15967d5 commit a2061a6Copy full SHA for a2061a6
client/src/utils/schemaUtils.ts
@@ -95,7 +95,7 @@ export function generateDefaultValue(
95
}
96
97
// Check if this property is required in the parent schema
98
- const isRequired = isPropertyRequired(propertyName, parentSchema);
+ const isRequired = propertyName && parentSchema ? isPropertyRequired(propertyName, parentSchema) : false;
99
100
switch (schema.type) {
101
case "string":
0 commit comments