{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/digitraffic-fi/json-schema/digitraffic-fi-location-types-dto-v1-schema.json",
  "title": "LocationTypesDtoV1",
  "description": "TMS/Alert-C Location types and location subtypes",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digitraffic-fi-road-api-openapi.yml#/components/schemas/LocationTypesDtoV1",
  "required": [
    "dataUpdatedTime",
    "locationSubtypes",
    "locationTypes",
    "version"
  ],
  "type": "object",
  "properties": {
    "dataUpdatedTime": {
      "type": "string",
      "description": "Data last updated time",
      "format": "date-time"
    },
    "version": {
      "type": "string",
      "description": "Version of TMS/Alert-C material"
    },
    "locationTypes": {
      "type": "array",
      "description": "Location types",
      "items": {
        "$ref": "#/$defs/LocationTypeDtoV1"
      }
    },
    "locationSubtypes": {
      "type": "array",
      "description": "Location subtypes",
      "items": {
        "$ref": "#/$defs/LocationSubtypeDtoV1"
      }
    }
  },
  "$defs": {
    "LocationSubtypeDtoV1": {
      "required": [
        "descriptionEn",
        "descriptionFi",
        "subtypeCode"
      ],
      "type": "object",
      "properties": {
        "subtypeCode": {
          "type": "string",
          "description": "Code of location subtype"
        },
        "descriptionFi": {
          "type": "string",
          "description": "Description of subtype in finnish"
        },
        "descriptionEn": {
          "type": "string",
          "description": "Description of subtype in english"
        }
      },
      "description": "Location subtype"
    },
    "LocationTypeDtoV1": {
      "required": [
        "descriptionEn",
        "descriptionFi",
        "typeCode"
      ],
      "type": "object",
      "properties": {
        "typeCode": {
          "type": "string",
          "description": "Code of location type"
        },
        "descriptionFi": {
          "type": "string",
          "description": "Description of type in finnish"
        },
        "descriptionEn": {
          "type": "string",
          "description": "Description of type in english"
        }
      },
      "description": "Location type"
    }
  }
}