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
|
// Check if this property is required in the parent schema
|
||||||
const isRequired =
|
const isRequired = isPropertyRequired(propertyName, parentSchema);
|
||||||
parentSchema?.required?.includes(propertyName || "") ?? false;
|
|
||||||
|
|
||||||
switch (schema.type) {
|
switch (schema.type) {
|
||||||
case "string":
|
case "string":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue