{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ai-law-tracker-com/json-schema/ai-law-tracker-com-record-schema.json",
  "title": "Record",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ai-law-tracker-com-openapi.json#/components/schemas/Record",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Stable primary key (the /v1/laws/{id} path key)."
    },
    "scope": {
      "type": "string",
      "enum": [
        "state",
        "federal",
        "eu",
        "global"
      ]
    },
    "jurisdiction": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "abbr": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "identifier": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "record_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "Rich free-text status verbatim from the source."
    },
    "in_force": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Set only where the source states it explicitly; else null."
    },
    "record_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "null"
      ]
    },
    "official_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Primary/official (.gov) link where available."
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Last CHANGED — advanced only on a real content diff."
    },
    "checked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Last VERIFIED — bumped every time the source was successfully re-checked, even when unchanged."
    },
    "attribution": {
      "type": "string"
    }
  }
}