{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://imde.io/schema/azlon/1.0/locations/locations.json",
  "title": "DataTopic_Locations",
  "$comment": "Source XSD: https://imde.io/schema/azlon/1.0/locations/locations.xsd",
  "$defs": {
    "LocationIdentifiersType": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Identifier": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LocationIdentifierType"
          },
          "minItems": 1
        }
      },
      "required": [
        "Identifier"
      ]
    },
    "LocationIdentifierType": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Value": {
          "type": "string"
        },
        "Type": {
          "$ref": "https://imde.io/schema/azlon/1.0/codelists/locationIdentifierType.json"
        }
      },
      "required": [
        "Value",
        "Type"
      ]
    },
    "Locations": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Location": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "Identifiers": {
                "$ref": "#/$defs/LocationIdentifiersType"
              },
              "LocalIdentifier": {
                "type": "string"
              },
              "Name": {
                "$ref": "#/$defs/Name"
              },
              "DigitalLifeCycle": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "ActiveFrom": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ActiveUntil": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "Active": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "ActiveFrom",
                  "Active"
                ]
              }
            }
          }
        }
      }
    },
    "Name": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Translation": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Translation"
          },
          "minItems": 1
        }
      },
      "required": [
        "Translation"
      ]
    },
    "Translation": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "Value": {
          "type": "string"
        },
        "Culture": {
          "$ref": "https://imde.io/schema/azlon/1.0/codelists/culture.json"
        }
      },
      "required": [
        "Value",
        "Culture"
      ]
    }
  }
}
