{
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema",
    "properties": {
        "operators": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "number"
                    },
                    "name": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "name"
                ]
            }
        },
        "logs": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "description": {
                        "type": "string"
                    },
                    "key": {
                        "type": "string"
                    },
                    "maximum_merge_delay": {
                        "type": "number",
                        "minimum": 0
                    },
                    "operated_by": {
                        "type": "array",
                        "description": "List of log operators",
                        "items": {
                            "type": "number",
                            "description": "Operator numeric id"
                        }
                    },
                    "url": {
                        "type": "string"
                    },
                    "final_sth": {
                        "type": "object",
                        "properties": {
                            "tree_size": {
                                "type": "number",
                                "minimum": 0
                            },
                            "timestamp": {
                                "type": "number",
                                "minimum": 0
                            },
                            "sha256_root_hash": {
                                "type": "string"
                            },
                            "tree_head_signature": {
                                "type": "string"
                            }
                        }
                    },
                    "disqualified_at": {
                        "type": "number",
                        "minimum": 0
                    },
                    "dns_api_endpoint": {
                        "type": "string",
                        "description": "DNS API endpoint for the log"
                    }
                },
                "required": [
                    "description",
                    "key",
                    "maximum_merge_delay",
                    "operated_by",
                    "url"
                ]
            },
            "minItems": 1
        }
    },
    "required": [
        "logs",
        "operators"
    ]
}