Skip to content

EspoCRM – Open Source CRM Application

1.4 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://www.espocrm.com/schema/metadata/app/currency.json",
    "title": "app/currency",
    "description": "Currency definitions.",
    "type": "object",
    "properties": {
        "symbolMap": {
            "type": "object",
            "description": "A currency-code => symbol mapping.",
            "additionalProperties": {
                "type": "string",
                "description": "A 3-letter ISO 4217 currency code."
            }
        },
        "precisionMap": {
            "type": "object",
            "description": "A currency-code => precision mapping.",
            "additionalProperties": {
                "type": "number",
                "description": "Number of decimal places.",
                "minimum": 0,
                "maximum": 4
            }
        },
        "list": {
            "type": "array",
            "description": "A list of currencies available in the system. Values defined as 3-letter currency codes in ISO 4217 standard. Use __APPEND__ to add new currencies w/o deleting existing.",
            "items": {
                "anyOf": [
                    {"enum": ["__APPEND__"]},
                    {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 3,
                        "pattern": "^[A-Z]{3}$"
                    }
                ]
            }
        }
    }
}