{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "sums": {
            "$ref": "#/definitions/Sums"
        },
        "version": {
            "type": "string"
        }
    },
    "definitions": {
        "Sums": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "detection": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/DetectionType"
                    }
                },
                "period": {
                    "type": "integer"
                },
                "numsys": {
                    "type": "integer"
                }
            }
        },
        "DetectionType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "dets": {
                    "$ref": "#/definitions/Dets"
                },
                "id": {
                    "type": "string"
                },
                "now": {
                    "type": "integer"
                },
                "comm": {
                    "type": "string",
                    "enum": [
                        "OK",
                        "FAIL"
                    ]
                },
                "num": {
                    "type": "integer"
                }
            }
        },
        "Dets": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "det": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/DetType"
                    }
                }
            }
        },
        "DetType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "pos": {
                    "type": "integer"
                },
                "vol": {
                    "type": "integer"
                },
                "occ": {
                    "type": "integer"
                },
                "grn": {
                    "type": "integer"
                }
            }
        }
    }
}