Update client/src/utils/schemaUtils.ts

Co-authored-by: Cliff Hall <cliff@futurescale.com>
This commit is contained in:
Ola Hungerford 2025-06-10 21:21:43 -07:00 • committed by GitHub
commit 51eb7cf849
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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