{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "description": "Describes the tags defined in the NMOS Parameter Registers. May be applied to the tags property of any resource.",
  "title": "Tags",
  "properties": {
    "urn:x-nmos:tag:asset:manufacturer/v1.0": {
      "description": "The name used by the company or other organisation creating/selling an Asset. Exactly one value, as specified by AMWA BCP-002-02.",
      "type": "array",
      "minItems": 1,
      "maxItems": 1,
      "items": {
        "type": "string"
      }
    },
    "urn:x-nmos:tag:asset:product/v1.0": {
      "description": "The name given by the Manufacturer for the Asset. Exactly one value, as specified by AMWA BCP-002-02.",
      "type": "array",
      "minItems": 1,
      "maxItems": 1,
      "items": {
        "type": "string"
      }
    },
    "urn:x-nmos:tag:asset:instance-id/v1.0": {
      "description": "The identifier that distinguishes Assets that have the same Product Name. Exactly one value, as specified by AMWA BCP-002-02.",
      "type": "array",
      "minItems": 1,
      "maxItems": 1,
      "items": {
        "type": "string"
      }
    },
    "urn:x-nmos:tag:asset:function/v1.0": {
      "description": "The name of the function implemented by a Device within its Node. At least one value, as specified by AMWA BCP-002-02.",
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      }
    },
    "urn:x-nmos:tag:grouphint/v1.0": {
      "description": "The groups to which the resource belongs. Each value is either an empty string or has the form <group-name>:<role-in-group>[:<group-scope>], where group-scope is device or node.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^([^:]*:[^:]*(:(device|node))?)?$"
      }
    },
    "urn:x-nmos:tag:certprov": {
      "description": "The versions of AMWA BCP-003-03 that are enabled on the Node. Each value has the form v<MAJOR>.<MINOR>.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^v[0-9]+\\.[0-9]+$"
      }
    },
    "urn:x-vsf:tag:tr-09-2:booking-list/v1.0": {
      "description": "The VSF TR-09-2 bookings associated with the shared resource. Each value has the form <consumer-id>:<booking-id>:<element-id>[:<label>].",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[-_a-z0-9]{1,64}:[-_a-z0-9]{1,64}:[-_a-z0-9]{1,64}(:[^:]{1,128})?$"
      }
    },
    "urn:x-vsf:tag:tr-09-2:current-booking/v1.0": {
      "description": "The currently active VSF TR-09-2 booking for the shared resource, if any. The value has the form <consumer-id>:<booking-id>.",
      "type": "array",
      "maxItems": 1,
      "items": {
        "type": "string",
        "pattern": "^[-_a-z0-9]{1,64}:[-_a-z0-9]{1,64}$"
      }
    }
  }
}
