# CostStandard-template.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "CostStandard",
    "description": "CostStandard template",
    "dataTypes": [
        "software",
        "none"
    ],
    "type": "object",
    "class": "CostStandard",
    "properties": {
        "costType": {
            "type": "string",
            "description": "Type of incurred cost",
            "inputType": "dropdown",
            "label@fr_FR": "Type de coût",
            "label@en_GB": "Cost type",
            "registries": [
                "CostType"
            ],
            "registryCategory": "CostType",
            "overridable": true,
            "tooltip": null,
            "form_label@fr_FR": "Type de coût",
            "form_label@en_GB": "Cost type"
        },
        "amount": {
            "type": "number",
            "minimum": "10",
            "description": "Numerical value",
            "label@fr_FR": "Montant",
            "label@en_GB": "Amount",
            "tooltip": null,
            "form_label@fr_FR": "Montant",
            "form_label@en_GB": "Amount"
        },
        "currency": {
            "type": "string",
            "description": "Currency (Currency codes : ISO 4217)",
            "inputType": "dropdown",
            "label@fr_FR": "Devise",
            "label@en_GB": "Currency",
            "registries": [
                "ISO4217"
            ],
            "registryCategory": "ISO4217",
            "tooltip": null,
            "form_label@fr_FR": "Devise",
            "form_label@en_GB": "Currency"
        },
        "title": {
            "type": "string",
            "description": "Cost label",
            "label@fr_FR": "Titre",
            "label@en_GB": "Title",
            "tooltip": null,
            "form_label@fr_FR": "Titre",
            "form_label@en_GB": "Title"
        },
        "description": {
            "type": "string",
            "description": "Description of cost",
            "inputType": "textarea",
            "label@fr_FR": "Description",
            "label@en_GB": "Description",
            "tooltip": null,
            "form_label@fr_FR": "Description",
            "form_label@en_GB": "Description"
        }
    },
    "required": [
        "costType",
        "amount",
        "currency",
        "title"
    ],
    "to_string": [
        "$.costType",
        " : ",
        "$.amount",
        " ",
        "$.currency"
    ]
}