{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hsimc.tech/rd/t736/ecosystem/schemas/reference-sku.schema.json",
  "title": "Case reference component SKU",
  "type": "object",
  "required": [
    "sku_id",
    "revision",
    "kind",
    "name",
    "family_id",
    "purpose",
    "input_contract",
    "output_contract",
    "acceptance_target",
    "conditional_dependency_skus",
    "readiness",
    "commercial",
    "definition_url",
    "integration"
  ],
  "properties": {
    "sku_id": {
      "type": "string",
      "pattern": "^T736-ECO-[0-9]{3}$"
    },
    "revision": {
      "const": "C0-001"
    },
    "kind": {
      "const": "REFERENCE_COMPONENT_SKU"
    },
    "family_id": {
      "enum": [
        "F01",
        "F02",
        "F03",
        "F04",
        "F05",
        "F06",
        "F07",
        "F08",
        "F09",
        "F10",
        "F11",
        "F12",
        "F13",
        "F14"
      ]
    },
    "commercial": {
      "type": "object",
      "required": [
        "orderable",
        "price",
        "supplier_subject_ref"
      ],
      "properties": {
        "orderable": {
          "const": false
        },
        "price": {
          "type": "null"
        },
        "supplier_subject_ref": {
          "type": "null"
        }
      }
    },
    "integration": {
      "type": "object",
      "required": [
        "mcp_live_endpoint",
        "mcp_conformance"
      ],
      "properties": {
        "mcp_live_endpoint": {
          "type": "null"
        },
        "mcp_conformance": {
          "const": "NOT_RUN"
        }
      }
    },
    "conditional_dependency_skus": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string",
        "pattern": "^T736-ECO-[0-9]{3}$"
      }
    },
    "definition_url": {
      "type": "string",
      "format": "uri"
    }
  }
}
