field validator
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank 2022-10-27 15:58:18 +02:00
parent 8db5fd03a2
commit f738754f04

View File

@ -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"
}
}
}