From 6a38e1ae6b16b65dd24a6ec211d0a3d6a7aae18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sun, 8 Mar 2026 21:11:09 +0300 Subject: [PATCH] Update foreign-key-descriptor.schema.json --- .../foreign-key-descriptor.schema.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lowcode/schema/definitions/foreign-key-descriptor.schema.json b/lowcode/schema/definitions/foreign-key-descriptor.schema.json index 27d0e81f03..8c38f0acf7 100644 --- a/lowcode/schema/definitions/foreign-key-descriptor.schema.json +++ b/lowcode/schema/definitions/foreign-key-descriptor.schema.json @@ -20,6 +20,24 @@ "description": "Access level for managing this relation from the referenced entity side. When set to 'view' or 'edit', the referenced entity can see/manage items that reference it.", "enum": ["none", "view", "edit"], "default": "none" + }, + "dependsOn": { + "type": "object", + "description": "Cascading dependency: filter this FK's lookup by the value of another FK property on the same entity.", + "properties": { + "propertyName": { + "type": "string", + "description": "The property name on the owning entity whose value provides the filter (e.g. 'CountryId' on Author)", + "minLength": 1 + }, + "filterPropertyName": { + "type": "string", + "description": "The property name on the target (lookup) entity to filter by (e.g. 'CountryId' on City)", + "minLength": 1 + } + }, + "required": ["propertyName", "filterPropertyName"], + "additionalProperties": false } }, "required": ["entityName"],