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": {