{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/AssetAddressAssignment.schema.json",
  "title": "AssetAddressAssignment",
  "description": "A dated association between a physical asset and an address used for a stated purpose, such as postal delivery or site access. A change of address does not create a new asset or change its owner.",
  "type": "object",
  "properties": {
    "subject_uri": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the thing this record or statement is about."
    },
    "assigned_address": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Address.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The address associated with the asset for the stated purpose and period. An address change need not identify a different asset."
    },
    "address_purpose": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The purpose of the address for this asset, such as postal delivery or physical access. A postal address does not establish where the asset is. Codes from https://publicschema.org/vocab/address-purpose can be used where the source has no scheme of its own."
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which this became effective."
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "description": "The last day on which this is effective. A period includes both its start date and its end date, so a period that applies only on 30 June 2026 has start date 2026-06-30 and end date 2026-06-30."
    }
  }
}
