{
    "title": "JSON representation of CIF 1.1 data block, used by cod-tools",
    "type": "object",
    "properties": {
        "version": { "type": "string" },
        "data": {
            "type": "object",
            "properties": {
                "types": {
                    "type": "object",
                    "patternProperties": {
                        "^_": {
                            "type": "array",
                            "items": { "type": "string" }
                        }
                    },
                    "additionalProperties": false
                },
                "inloop": {
                    "type": "object",
                    "patternProperties": {
                        "^_": {
                            "type": "integer"
                        }
                    }
                },
                "name": { "type": "string" },
                "values": {
                    "type": "object",
                    "patternProperties": {
                        "^_": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        }
                    },
                    "additionalProperties": false
                },
                "tags": {
                    "type": "array",
                    "items": { "type": "string" }
                },
                "loops": {
                    "type": "array",
                    "items": {
                        "type": "array",
                        "items": { "type": "string" }
                    }
                },
                "save_blocks": {
                    "type": "array"
                },
                "precisions": {
                    "type": "object",
                    "patternProperties": {
                        "^_": {
                            "type": "array"
                        }
                    },
                    "additionalProperties": false
                }
            },
            "additionalProperties": false
        }
    },
    "required": [ "version", "data" ],
    "additionalProperties": false
}
