{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fdc3.finos.org/schemas/next/context/orderList.schema.json",
  "type": "object",
  "title": "OrderList",
  "description": "@experimental A list of orders. Use this type for use cases that require not just a single order, but multiple.\n\nThe OrderList schema does not explicitly include identifiers in the id section, as there is not a common standard for such identifiers. Applications can, however, populate this part of the contract with custom identifiers if so desired.",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "type": {
          "const": "fdc3.orderList"
        },
        "id": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "title": "Order List Identifiers",
          "description": "One or more identifiers that refer to the order list in an OMS, EMS or related system. Specific key names for systems are expected to be standardized in future."
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "An optional human-readable summary of the order list"
        },
        "orders": {
          "type": "array",
          "items": {
            "$ref": "order.schema.json#"
          },
          "title": "List of Orders",
          "description": "An array of order contexts that forms the list."
        }
      },
      "required": [
        "type",
        "orders"
      ]
    },
    { "$ref": "context.schema.json#/definitions/BaseContext" }
  ],
  "examples": [
    {
      "type": "fdc3.orderList",
      "orders": [
        {
          "type": "fdc3.order",
          "id": {
            "myOMS": "ABC123"
          }
        },
        {
          "type": "fdc3.order",
          "id": {
            "myOMS": "DEF456"
          }
        }
      ]
    }
  ]
}