{
    "$id": "https://timdegroot.codeberg.page/GKMC/schemas/ratefile.schema.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "RRKM Ratefile",
    "description": "",
    "type": "object",
    "required": ["reactionId", "reactionType", "scaling_factor", "E0", "Delta", "energy_eV", "rate_s_inv"],
    "properties": {
        "reactionId": {
            "type": "string",
            "description": "Reaction name."
        },
        "reactionType": {
            "enum": [
                "scramble",
                "dissociate"
            ],
            "description": "Reaction type (dissociate or scramble)."
        },
        "scaling_factor": {
            "type": "number",
            "description": "Scaling factor used in RRKM."
        },
        "E0": {
            "type": "number",
            "minimum": 0,
            "description": "Reaction threshold energy in eV."
        },
        "Delta": {
            "type": "number",
            "description": "Reaction energy change in eV."
        },
        "energy_eV": {
            "type": "array",
            "items": {
                "type": "number",
                "minimum": 0
            },
            "description": "Strictly increasing internal-energy grid in eV."
        },
        "rate_s_inv": {
            "type": "array",
            "items": {
                "type": "number",
                "minimum": 0
            },
            "description": "Rates corresponding element-by-element to energy_eV in s^-1."
        }
    },
    "additionalProperties": false
}