From 3e2a3597ad5094de2f49b7413c8de57d8ee03027 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 9 May 2024 15:39:43 +0300 Subject: [PATCH] schema --- schema/metadata/entityDefs.json | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/schema/metadata/entityDefs.json b/schema/metadata/entityDefs.json index 32ce4b1548..8f334a00a5 100644 --- a/schema/metadata/entityDefs.json +++ b/schema/metadata/entityDefs.json @@ -245,6 +245,25 @@ } } }, + { + "if": { + "properties": { + "type": { + "anyOf": [ + {"const": "array"} + ] + } + } + }, + "then": { + "properties": { + "noEmptyString": { + "type": "boolean", + "description": "Don't allow empty string." + } + } + } + }, { "if": { "properties": { @@ -564,6 +583,27 @@ } } }, + { + "if": { + "properties": { + "type": { + "anyOf": [ + {"const": "link"}, + {"const": "linkMultiple"}, + {"const": "linkOne"} + ] + } + } + }, + "then": { + "properties": { + "entity": { + "type": "string", + "description": "An entity type. To be specified if there's no corresponding link defined." + } + } + } + }, { "if": { "properties": {