Skip to content

Commit 51eb7cf

Browse files
olaservocliffhall
andauthored
Update client/src/utils/schemaUtils.ts
Co-authored-by: Cliff Hall <[email protected]>
1 parent e28e08d commit 51eb7cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/src/utils/schemaUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ export function generateDefaultValue(
9595
}
9696

9797
// Check if this property is required in the parent schema
98-
const isRequired =
99-
parentSchema?.required?.includes(propertyName || "") ?? false;
98+
const isRequired = isPropertyRequired(propertyName, parentSchema);
10099

101100
switch (schema.type) {
102101
case "string":

0 commit comments

Comments
 (0)