{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "cdm.base.staticdata.identifier",
  "type": "object",
  "title": "IdentifiedList",
  "description": "Attaches an identifier to a collection of objects, when those objects themselves can each be represented by an identifier. One use case is the representation of package transactions, where each component is a separate trade with its own identifier, and those trades are linked together as a package with its own identifier. The data type has been named generically rather than referring to 'packages' as it may have a number of other uses.",
  "properties": {
    "listId": {
      "description": "The identifier for the list. In the case of a package transaction, this would be the package identifier. This attribute is mandatory to allow the list itself to be identified.",
      "$ref": "cdm-base-staticdata-identifier-Identifier.schema.json"
    },
    "componentId": {
      "description": "Identifiers for each component of the list. Since the data type is used to link multiple identified objects together, at least 2 components are required in the list. Creating an identified list with only 1 identified component has been deemed unnecessary, because it would just create a redundant identifier.",
      "type": "array",
      "items": {
        "$ref": "cdm-base-staticdata-identifier-Identifier.schema.json"
      },
      "minItems": 2
    },
    "price": {
      "description": "The price of the package.",
      "$ref": "cdm-observable-asset-Price.schema.json"
    }
  },
  "required": [
    "listId"
  ]
}
