Files
espocrm/schema/metadata/app/formula.json
Yuri Kuznetsov 06771f2f3e unsafe functions
2024-05-02 20:05:40 +03:00

50 lines
1.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://www.espocrm.com/schema/metadata/app/formula.json",
"title": "app/formula",
"description": "Definitions for the formula editor.",
"type": "object",
"properties": {
"functionList": {
"type": "array",
"description": "Functions.",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A name."
},
"insertText": {
"type": "string",
"description": "A text to insert in the editor."
},
"returnType": {
"type": "string",
"description": "A return type."
},
"unsafe": {
"type": "boolean",
"description": "Is unsafe. As of v8.3.0."
}
}
},
{
"enum": ["__APPEND__"]
}
]
}
},
"functionClassNameMap": {
"type": "object",
"description": "Function implementations. Should implement Espo\\Core\\Formula\\Func.",
"additionalProperties": {
"type": "string",
"description": "A function."
}
}
}
}