From b9c58252a107210cecd0e324cc51fc188dc12c53 Mon Sep 17 00:00:00 2001 From: Mitko Iliev Date: Sat, 19 Apr 2025 00:05:56 +0300 Subject: [PATCH] Fixed: if not given cannnot be null default --- client/src/utils/schemaUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/utils/schemaUtils.ts b/client/src/utils/schemaUtils.ts index ea92065..520b790 100644 --- a/client/src/utils/schemaUtils.ts +++ b/client/src/utils/schemaUtils.ts @@ -13,7 +13,7 @@ export function generateDefaultValue(schema: JsonSchemaType): JsonValue { if (!schema.required) { if (schema.type === "array") return []; if (schema.type === "object") return {}; - return null; + return undefined; } switch (schema.type) {