{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/AutoGitr/OvertureDB/main/schema/catalog.schema.json",
  "title": "OvertureDB catalog v1 header",
  "description": "The first line of catalog.jsonl. Every following line is one entry.schema.json record.",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema_version", "generated_at", "source_revision", "third_party_notices"],
  "properties": {
    "schema_version": {"type": "integer", "const": 2},
    "generated_at": {"type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},
    "source_revision": {"type": "string", "pattern": "^(?:[0-9a-f]{40}|[0-9a-f]{64})$"},
    "third_party_notices": {"const": "THIRD_PARTY_NOTICES.md"}
  }
}
