Skip to content

EspoCRM – Open Source CRM Application

1.7 KB
Raw Blame
{
    "$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."
            }
        }
    }
}