{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mzizi-dev/json-schema/mzizi-dev-sovereignty-report-schema.json",
  "title": "SovereigntyReport",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mzizi-dev-openapi.yml#/components/schemas/SovereigntyReport",
  "type": "object",
  "required": [
    "@context",
    "@type",
    "name",
    "assessments",
    "removedTechnologies"
  ],
  "properties": {
    "@context": {
      "type": "string",
      "const": "https://schema.org"
    },
    "@type": {
      "type": "string",
      "const": "TechArticle"
    },
    "name": {
      "type": "string"
    },
    "assessments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SovereigntyAssessment"
      }
    },
    "removedTechnologies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RemovedTechnology"
      }
    }
  },
  "$defs": {
    "RemovedTechnology": {
      "type": "object",
      "required": [
        "name",
        "previousRole",
        "reason",
        "replacement",
        "migrationPath"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "previousRole": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "replacement": {
          "type": "string"
        },
        "migrationPath": {
          "type": "string"
        }
      }
    },
    "SovereigntyAssessment": {
      "type": "object",
      "required": [
        "technology",
        "role",
        "license",
        "governance",
        "sovereigntyRisk",
        "forkable",
        "selfHostable",
        "rationale"
      ],
      "properties": {
        "technology": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "governance": {
          "type": "string"
        },
        "sovereigntyRisk": {
          "type": "string",
          "enum": [
            "none",
            "low",
            "removed"
          ]
        },
        "forkable": {
          "type": "boolean"
        },
        "selfHostable": {
          "type": "boolean"
        },
        "rationale": {
          "type": "string"
        }
      }
    }
  }
}