{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hmcts/json-schema/hmcts-application-list-get-detail-dto-schema.json",
  "title": "application-list-get-detail-dto",
  "description": "Immutable DTO representing a detailed Application List.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hmcts-application-lists-api-openapi.yml#/components/schemas/application-list-get-detail-dto",
  "properties": {
    "id": {
      "description": "Unique identifier of the Application List.",
      "format": "uuid",
      "type": "string"
    },
    "date": {
      "description": "The calendar date on which the Application List is scheduled.",
      "format": "date",
      "type": "string"
    },
    "time": {
      "description": "The time of day at which the Application List is scheduled, seconds are optional.",
      "format": "time",
      "type": "string"
    },
    "description": {
      "description": "Human-readable description of the Application List (e.g. session title or purpose).",
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/application-list-status"
    },
    "courtCode": {
      "description": "Code that identifies the Court Location.",
      "type": "string"
    },
    "courtName": {
      "description": "Name that identifies the Court Location.",
      "type": "string"
    },
    "cjaCode": {
      "description": "Criminal Justice Area code.",
      "type": "string"
    },
    "otherLocationDescription": {
      "description": "Free-text location if not using a standard court.",
      "type": "string"
    },
    "durationHours": {
      "description": "Duration hours component.",
      "format": "int32",
      "maximum": 99,
      "minimum": 0,
      "type": "integer"
    },
    "durationMinutes": {
      "description": "Duration minutes component.",
      "format": "int32",
      "maximum": 59,
      "minimum": 0,
      "type": "integer"
    },
    "version": {
      "description": "Current resource version for optimistic concurrency.",
      "format": "int64",
      "type": "integer"
    },
    "entriesCount": {
      "description": "Total number of Application List Entries associated with this Application List.",
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "date",
    "description",
    "id",
    "status",
    "time",
    "version"
  ],
  "type": "object",
  "$defs": {
    "application-list-status": {
      "description": "Status of the Application List.",
      "enum": [
        "OPEN",
        "CLOSED"
      ],
      "type": "string"
    }
  }
}