{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Public machine data catalog",
    "type": "object",
    "required": [
        "version",
        "site",
        "generated_at",
        "content_sha256",
        "assets"
    ],
    "properties": {
        "version": {
            "const": "1.0"
        },
        "site": {
            "type": "string",
            "format": "uri"
        },
        "generated_at": {
            "type": "string",
            "format": "date-time"
        },
        "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
        },
        "assets": {
            "type": "array",
            "items": {
                "type": "object",
                "required": [
                    "url",
                    "sha256",
                    "syntax",
                    "verification"
                ],
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "sha256": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                    },
                    "verification": {
                        "type": "object"
                    }
                }
            }
        }
    }
}
