{
  "$id": "https://schema.nfh.global/Tracking/v2.1",
  "x-iri": "https://schema.nfh.global/Tracking/v2.1",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Information regarding live tracking of the fufillment of a contract",
  "title": "Tracking",
  "type": "object",
  "properties": {
    "contract": {
      "description": "Attributes of the contract for which the tracking is performed",
      "allOf": [
        {
          "$ref": "https://schema.nfh.global/Contract/v2.0/schema.json"
        },
        {
          "required": [
            "id"
          ]
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    },
    "url": {
      "description": "Link/handle to off-network tracking UI or endpoint.",
      "type": "string",
      "format": "uri"
    },
    "trackingAttributes": {
      "$ref": "https://schema.nfh.global/Attributes/v2.0/schema.json"
    }
  },
  "required": [
    "url",
    "status"
  ]
}
