{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gharganit.com/data/indian-land-units.schema.json",
  "title": "Indian Land-Unit Factor Dataset",
  "type": "object",
  "required": ["title", "creator", "publisher", "url", "license", "version", "note", "factors"],
  "properties": {
    "title": { "type": "string" },
    "creator": { "type": "string" },
    "publisher": { "type": "string" },
    "url": { "type": "string", "format": "uri" },
    "license": { "type": "string", "format": "uri" },
    "version": { "type": "string" },
    "note": { "type": "string" },
    "factors": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["unit", "state", "locality", "squareFootFactor", "sourceId", "status", "knownException", "lastReviewed"],
        "properties": {
          "unit": { "type": "string", "description": "Regional land-unit name." },
          "alternativeSpelling": { "type": "array", "items": { "type": "string" } },
          "state": { "type": "string", "description": "Indian state scope attached to the factor." },
          "locality": { "type": "string", "description": "Local or settlement context stated by the source." },
          "squareFootFactor": { "type": "number", "exclusiveMinimum": 0, "description": "Square feet represented by one unit in the stated context." },
          "sourceId": { "type": "string", "description": "Stable identifier mapped to the public source library." },
          "status": { "enum": ["documented", "customary", "approximate"] },
          "knownException": { "type": "string" },
          "lastReviewed": { "type": "string", "format": "date" }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
