{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://www.qiskit.org/schemas/backendstatus_schema.json",
    "description": "OpenQuantum backend status schema",
    "version": "1.0.0",
    "type": "object",
    "required": [
        "backend_name",
        "backend_version",
        "operational",
        "pending_jobs",
        "status_msg"
    ],
    "properties": {
        "backend_name": {
            "type": "string",
            "description": "Backend name"
        },
        "backend_version": {
            "description": "Backend version in the form X.X.X",
            "pattern": "[0-9]+.[0-9]+.[0-9]+$",
            "type": "string"
        },
        "operational": {
            "type": "boolean",
            "description": "Backend operational and accepting jobs (true/false)"
        },
        "pending_jobs": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of pending jobs on the backend"
        },
        "status_msg": {
            "type": "string",
            "description": "Status message"
        }
    }
}