Add check to fix build failure

This commit is contained in:
olaservo 2025-06-10 21:27:54 -07:00
commit a2061a6f76

View file

@ -95,7 +95,7 @@ export function generateDefaultValue(
}
// Check if this property is required in the parent schema
const isRequired = isPropertyRequired(propertyName, parentSchema);
const isRequired = propertyName && parentSchema ? isPropertyRequired(propertyName, parentSchema) : false;
switch (schema.type) {
case "string":