{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://rslquantum.com/quantum-india/schema/patent.schema.json",
  "title": "QuantumIndia Patent / Filing",
  "type": "object",
  "description": "One row of /quantum-india/data/patents.json. url must open the official record for the publication number, and inventors and assignees are copied from that record.",
  "required": ["publication_number", "title", "assignees", "inventors", "filing_office", "filed", "url", "verified_via", "last_verified_at"],
  "properties": {
    "publication_number": { "type": "string" },
    "title":              { "type": "string" },
    "assignees":          { "type": "array", "items": { "type": "string" } },
    "inventors":          { "type": "array", "minItems": 1, "items": { "type": "string" } },
    "filing_office":      { "type": "string", "enum": ["IPO-IN", "USPTO", "EPO", "WIPO", "JPO", "KIPO", "CNIPA", "Other"] },
    "filed":              { "type": "string", "format": "date" },
    "granted":            { "type": ["string","null"], "format": "date" },
    "abstract":           { "type": "string" },
    "cpc_codes":          { "type": "array", "items": { "type": "string" } },
    "url":                { "type": "string", "format": "uri" },
    "source":             { "type": "string" },
    "verified_via":       { "type": "string" },
    "last_verified_at":   { "type": "string", "format": "date" }
  },
  "additionalProperties": false
}
