From c5828a9febfaaf224888692e9e856d65d65a571d Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 15 May 2024 10:30:10 +0300 Subject: [PATCH] schema --- schema/metadata/entityDefs.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/schema/metadata/entityDefs.json b/schema/metadata/entityDefs.json index 8f334a00a5..6179bc87d1 100644 --- a/schema/metadata/entityDefs.json +++ b/schema/metadata/entityDefs.json @@ -175,6 +175,7 @@ "properties": { "type": { "anyOf": [ + {"const": "varchar"}, {"const": "enum"}, {"const": "multiEnum"}, {"const": "array"}, @@ -348,6 +349,27 @@ } } }, + { + "if": { + "properties": { + "type": { + "anyOf": [ + {"const": "varchar"}, + {"const": "array"}, + {"const": "multiEnum"} + ] + } + } + }, + "then": { + "properties": { + "pattern": { + "type": "string", + "description": "A regular expression to check a field value against. If starts with $, a predefined named expression will be used." + } + } + } + }, { "if": { "properties": {