# Cost-schema.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "Cost",
    "description": "Cost schema",
    "dataTypes": null,
    "type": "object",
    "properties": {
        "description": {
            "type": "string",
            "description": "Description of cost"
        },
        "costType": {
            "type": "string",
            "description": "Type of incurred cost",
            "enum": [
                "Personnel cost",
                "Training",
                "Software",
                "Hardware",
                "Storage"
            ]
        },
        "amount": {
            "type": "number",
            "description": "Numerical value"
        },
        "currency": {
            "type": "string",
            "description": "Currency (Currency codes : ISO 4217)",
            "enum": [
                "EUR",
                "GBP",
                "USD",
                "SGD"
            ]
        },
        "title": {
            "type": "string",
            "description": "Cost label"
        }
    },
    "required": [
        "costType",
        "amount",
        "currency",
        "title"
    ]
}