{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hmcts/json-schema/hmcts-court-location-get-detail-dto-schema.json",
  "title": "court-location-get-detail-dto",
  "description": "Immutable DTO representing a detailed Court Location.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hmcts-court-locations-api-openapi.yml#/components/schemas/court-location-get-detail-dto",
  "properties": {
    "name": {
      "description": "Human-readable court name.",
      "type": "string"
    },
    "locationCode": {
      "description": "Code that identifies the Court Location.",
      "type": "string"
    },
    "startDate": {
      "description": "Date the Court Location became active.",
      "format": "date",
      "type": "string"
    },
    "endDate": {
      "description": "Date the Court Location became inactive. `null` indicates that this row is still active.",
      "format": "date",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "endDate",
    "locationCode",
    "name",
    "startDate"
  ],
  "type": "object"
}