Skip to content

Commit b9c5825

Browse files
committed
Fixed: if not given cannnot be null default
1 parent bbe4924 commit b9c5825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/utils/schemaUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function generateDefaultValue(schema: JsonSchemaType): JsonValue {
1313
if (!schema.required) {
1414
if (schema.type === "array") return [];
1515
if (schema.type === "object") return {};
16-
return null;
16+
return undefined;
1717
}
1818

1919
switch (schema.type) {

0 commit comments

Comments
 (0)