{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lexiel-ai/json-schema/lexiel-ai-case-schema.json",
  "title": "Case",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lexiel-ai-openapi.yml#/components/schemas/Case",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "caseNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "courtCaseNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "intake",
        "active",
        "on_hold",
        "closed_won",
        "closed_lost",
        "archived"
      ]
    },
    "clientId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "practiceArea": {
      "type": [
        "string",
        "null"
      ]
    },
    "jurisdiction": {
      "type": [
        "string",
        "null"
      ]
    },
    "factsSummary": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}