Update client/src/utils/schemaUtils.ts
Co-authored-by: Cliff Hall <cliff@futurescale.com>
This commit is contained in:
parent
e28e08d37d
commit
51eb7cf849
1 changed files with 1 additions and 2 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue