From 2cd8be347be9bfa44a787e84cd1e71dbf392170b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SAL=C4=B0H=20=C3=96ZKARA?= Date: Thu, 17 Sep 2026 12:29:16 +0300 Subject: [PATCH] Allow host-defined API Resource scope references --- .../api-resource-descriptor.schema.json | 160 +++++++++++++----- 1 file changed, 120 insertions(+), 40 deletions(-) diff --git a/schemas/low-code/definitions/api-resource-descriptor.schema.json b/schemas/low-code/definitions/api-resource-descriptor.schema.json index a06f64d95f..06d676b24b 100644 --- a/schemas/low-code/definitions/api-resource-descriptor.schema.json +++ b/schemas/low-code/definitions/api-resource-descriptor.schema.json @@ -350,10 +350,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -372,10 +380,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -394,10 +410,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -416,10 +440,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -438,10 +470,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -460,10 +500,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -482,10 +530,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -504,10 +560,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -526,10 +590,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": { @@ -548,10 +620,18 @@ "type": "object", "properties": { "kind": { - "enum": [ - "all", - "createdByCurrentUser", - "assignedToCurrentUser" + "anyOf": [ + { + "enum": [ + "all", + "createdByCurrentUser", + "assignedToCurrentUser" + ] + }, + { + "type": "string", + "pattern": "^host:.+$" + } ] }, "userProperty": {