diff --git a/schemas/api-config/field.json b/schemas/api-config/field.json index 64fa2ff..a97a5f5 100644 --- a/schemas/api-config/field.json +++ b/schemas/api-config/field.json @@ -58,6 +58,16 @@ } ] }, + "validator": { + "type": "object", + "description": "field validator", + "properties": { + "eval": { + "type": "string", + "description": "javascript validator which failes if evaluates to false or string as error message, with following variables: $this, $parent, $stack, $auth, context" + } + } + }, "meta": { "type": "object", "description": "meta object of field", @@ -79,6 +89,7 @@ "select", "selectArray", "date", + "datetime", "file", "image", "jsonField", @@ -182,7 +193,7 @@ "properties": { "eval": { "type": "string", - "description": "js code with $, $this, $parent and $stack variables" + "description": "javascript code which hides field widget if evaluates to false with $, $this, $parent and $stack variables" } } }