{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/public-programme-version",
    "title": "Public Programme / Scheme Version",
    "type": "object",
    "required": [
        "programme_name",
        "jurisdiction",
        "ministry",
        "version_label",
        "effective_date"
    ],
    "properties": {
        "programme_name": {
            "title": "Programme name",
            "type": "string",
            "maxLength": 1000
        },
        "jurisdiction": {
            "title": "Jurisdiction",
            "type": "string",
            "maxLength": 1000
        },
        "ministry": {
            "title": "Ministry / department",
            "type": "string",
            "maxLength": 1000
        },
        "version_label": {
            "title": "Version label",
            "type": "string",
            "maxLength": 1000
        },
        "effective_date": {
            "title": "Effective date",
            "type": "string",
            "format": "date"
        },
        "iati_identifier": {
            "title": "IATI identifier",
            "type": "string",
            "maxLength": 1000
        },
        "budget_amount": {
            "title": "Budget amount",
            "type": "number"
        },
        "budget_currency": {
            "title": "Budget currency",
            "type": "string",
            "maxLength": 1000
        },
        "eligibility_rules_url": {
            "title": "Eligibility rules URL",
            "type": "string",
            "format": "uri"
        },
        "evaluation_dois": {
            "title": "Evaluation IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        }
    },
    "additionalProperties": true
}