{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://machinesignal.it/machine-purchase-readiness-benchmark.schema.json",
  "title": "B2B Machine-Purchase Readiness Benchmark",
  "type": "object",
  "required": [
    "benchmark_id",
    "version",
    "status",
    "scope",
    "scoring",
    "dimensions",
    "hard_blockers",
    "synthetic_examples",
    "sources",
    "license",
    "release"
  ],
  "properties": {
    "benchmark_id": {
      "const": "MS-B2B-MACHINE-PURCHASE-READINESS-IT"
    },
    "version": {
      "type": "string",
      "minLength": 1
    },
    "status": {
      "const": "published_public_methodology"
    },
    "scope": {
      "type": "object"
    },
    "scoring": {
      "type": "object",
      "required": [
        "maximum_score",
        "allowed_scores_per_criterion",
        "thresholds"
      ]
    },
    "dimensions": {
      "type": "array",
      "minItems": 5,
      "maxItems": 5,
      "items": {
        "type": "object",
        "required": [
          "dimension_id",
          "maximum_score",
          "criteria"
        ],
        "properties": {
          "dimension_id": {
            "type": "string"
          },
          "maximum_score": {
            "const": 20
          },
          "criteria": {
            "type": "array",
            "minItems": 4,
            "maxItems": 4,
            "items": {
              "type": "object",
              "required": [
                "criterion_id",
                "weight",
                "title_it",
                "title_en",
                "verification"
              ],
              "properties": {
                "criterion_id": {
                  "type": "string"
                },
                "weight": {
                  "const": 5
                }
              }
            }
          }
        }
      }
    },
    "hard_blockers": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      }
    },
    "synthetic_examples": {
      "type": "array",
      "minItems": 3
    },
    "sources": {
      "type": "array",
      "minItems": 8
    },
    "license": {
      "type": "object",
      "required": [
        "copyright",
        "citation_with_canonical_link_permitted",
        "reproduction_or_commercial_reuse_license_granted"
      ]
    },
    "release": {
      "type": "object",
      "required": [
        "published_on",
        "canonical_json",
        "schema",
        "human_readable_it",
        "human_readable_en",
        "synthetic_examples_only",
        "contains_customer_or_order_data"
      ]
    }
  },
  "additionalProperties": true
}
