From 1976a2ff7cfaf3556018763c7af0d87d3c01b76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 9 Mar 2026 04:50:09 +0300 Subject: [PATCH] Update page-descriptor.schema.json --- .../definitions/page-descriptor.schema.json | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/lowcode/schema/definitions/page-descriptor.schema.json b/lowcode/schema/definitions/page-descriptor.schema.json index 7301334099..c31f526dde 100644 --- a/lowcode/schema/definitions/page-descriptor.schema.json +++ b/lowcode/schema/definitions/page-descriptor.schema.json @@ -24,7 +24,7 @@ }, "entityName": { "type": "string", - "description": "Full name of the root entity this page displays (e.g., 'Namespace.EntityName')", + "description": "Full name of the root entity this page displays (e.g., 'Namespace.EntityName'). Not required for dashboard pages.", "minLength": 1 }, "groupByProperty": { @@ -66,14 +66,30 @@ "$ref": "dashboard-descriptor.schema.json" } }, - "required": ["name", "title", "type", "entityName"], + "required": ["name", "title", "type"], "allOf": [ + { + "if": { + "properties": { "type": { "const": "dataGrid" } } + }, + "then": { + "required": ["entityName"] + } + }, { "if": { "properties": { "type": { "const": "kanban" } } }, "then": { - "required": ["groupByProperty"] + "required": ["entityName", "groupByProperty"] + } + }, + { + "if": { + "properties": { "type": { "const": "calendar" } } + }, + "then": { + "required": ["entityName"] } }, { @@ -81,7 +97,7 @@ "properties": { "type": { "const": "form" } } }, "then": { - "required": ["formName"] + "required": ["entityName", "formName"] } }, {