{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callidus-legal-ai/json-schema/callidus-legal-ai-addin-case-details-response-schema.json",
  "title": "AddinCaseDetailsResponse",
  "description": "Response model for case details from HydratedDisposition.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/callidus-legal-ai-cases-api-openapi.yml#/components/schemas/AddinCaseDetailsResponse",
  "properties": {
    "caseId": {
      "type": "string",
      "title": "Caseid"
    },
    "caseDocketId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Casedocketid"
    },
    "caseClusterId": {
      "type": "string",
      "title": "Caseclusterid"
    },
    "caseDBId": {
      "type": "string",
      "title": "Casedbid"
    },
    "caseName": {
      "type": "string",
      "title": "Casename"
    },
    "caseNameBluebook": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Casenamebluebook"
    },
    "caseNameShortBluebook": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Casenameshortbluebook"
    },
    "citation": {
      "type": "string",
      "title": "Citation"
    },
    "citationCount": {
      "type": "integer",
      "title": "Citationcount"
    },
    "citationStrings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Citationstrings"
    },
    "publicationStatus": {
      "$ref": "#/$defs/PublicationStatus",
      "default": "Published"
    },
    "matched_citation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Matched Citation"
    },
    "dateDecided": {
      "type": "string",
      "title": "Datedecided"
    },
    "court": {
      "type": "string",
      "title": "Court"
    },
    "court_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Court Id"
    },
    "judges": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Judges"
    },
    "caseType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Casetype"
    },
    "trialStage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trialstage"
    },
    "dispositionType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dispositiontype"
    },
    "winningParty": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Winningparty"
    },
    "outcomeSnippet": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Outcomesnippet"
    },
    "areasOfLaw": {
      "additionalProperties": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "type": "object",
      "title": "Areasoflaw"
    },
    "causesOfAction": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Causesofaction"
    },
    "facts": {
      "additionalProperties": true,
      "type": "object",
      "title": "Facts"
    },
    "holdings": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Holdings"
    },
    "precedents": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Precedents"
    },
    "citationStats": {
      "additionalProperties": true,
      "type": "object",
      "title": "Citationstats"
    },
    "subsequentCitations": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Subsequentcitations"
    },
    "arguments": {
      "additionalProperties": true,
      "type": "object",
      "title": "Arguments"
    },
    "judge": {
      "additionalProperties": true,
      "type": "object",
      "title": "Judge"
    },
    "courtDetails": {
      "additionalProperties": true,
      "type": "object",
      "title": "Courtdetails"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "caseId",
    "caseClusterId",
    "caseDBId",
    "caseName",
    "citation",
    "citationCount",
    "dateDecided",
    "court"
  ],
  "$defs": {
    "PublicationStatus": {
      "type": "string",
      "enum": [
        "Published",
        "Slip Opinion"
      ],
      "title": "PublicationStatus",
      "description": "Derived at hydration from reporter_citations presence — not a stored column (ENG-18892)."
    }
  }
}