{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Host.GetComponentList Response",
  "type": "object",
  "properties": {
    "components": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Component"
      },
      "description": "List of all components."
    }
  },
  "required": [
    "components"
  ],
  "$defs": {
    "Component": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "In API v1 this is the article code, not a unique ID."
        },
        "articleCode": {
          "type": "string",
          "description": "Article code."
        },
        "description": {
          "type": "string",
          "description": "Component description."
        },
        "quantity": {
          "type": "number",
          "description": "Quantity in the schematic."
        },
        "page": {
          "type": "string",
          "description": "Not populated in API v1 (always empty)."
        },
        "position": {
          "type": "string",
          "description": "Position designation on the page."
        }
      },
      "required": [
        "id",
        "articleCode"
      ],
      "description": "A component in the HydroSym schematic (used by Host API). Hose rows are excluded."
    }
  }
}