{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-case-response-schema.json",
  "title": "CaseResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-legal-holds-api-openapi.yml#/components/schemas/CaseResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[0-9]+$",
      "description": "Unique identifier of the case."
    },
    "organizationId": {
      "type": "string",
      "pattern": "^[0-9]+$",
      "description": "Unique identifier of the organization."
    },
    "name": {
      "type": "string",
      "description": "The name of the case."
    },
    "description": {
      "type": "string",
      "description": "The description of the case."
    },
    "createdBy": {
      "$ref": "#/$defs/User"
    },
    "lastModifiedBy": {
      "$ref": "#/$defs/User"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "lastModifiedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "createdAt",
    "createdBy",
    "id",
    "lastModifiedAt",
    "name",
    "organizationId"
  ],
  "$defs": {
    "User": {
      "description": "User information.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the user."
        },
        "email": {
          "type": "string",
          "description": "User email."
        },
        "firstName": {
          "type": "string",
          "description": "First name of the user."
        },
        "lastName": {
          "type": "string",
          "description": "Last name of the user."
        }
      },
      "required": [
        "id",
        "email",
        "firstName",
        "lastName"
      ]
    }
  }
}