{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-update-conformity-request-schema.json",
  "title": "UpdateConformityRequest",
  "description": "Request body for `PUT /api/v1/euaiact/conformity/{assessment_id}`.\nAll fields optional — only the fields present are updated.\nMirrors `platform/orchestrator/euaiact/types.go::UpdateAssessmentRequest`.\nThe handler rejects updates when the assessment status is no\nlonger `draft` or `in_progress`.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-eu-ai-act-api-openapi.yml#/components/schemas/UpdateConformityRequest",
  "type": "object",
  "properties": {
    "system_name": {
      "type": "string"
    },
    "risk_category": {
      "type": "string",
      "enum": [
        "minimal",
        "limited",
        "high-risk",
        "unacceptable"
      ]
    },
    "assessors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "requirements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RequirementStatus"
      }
    },
    "evidence": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EvidenceItem"
      }
    },
    "findings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Finding"
      }
    },
    "risk_mitigation": {
      "type": "object",
      "additionalProperties": true
    },
    "recommendations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "EvidenceItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "document",
            "test_result",
            "audit_log",
            "certification"
          ]
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "file_path": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "uploaded_at": {
          "type": "string",
          "format": "date-time"
        },
        "uploaded_by": {
          "type": "string"
        }
      }
    },
    "Finding": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "critical",
            "major",
            "minor",
            "observation"
          ]
        },
        "category": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "article": {
          "type": "string",
          "description": "Related EU AI Act article"
        },
        "remediation": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "resolved",
            "accepted"
          ]
        }
      }
    },
    "RequirementStatus": {
      "type": "object",
      "properties": {
        "requirement_id": {
          "type": "string"
        },
        "article": {
          "type": "string",
          "description": "EU AI Act article reference (e.g., \"Article 9\")"
        },
        "description": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "compliant",
            "non_compliant",
            "partial",
            "not_applicable"
          ]
        },
        "notes": {
          "type": "string"
        },
        "evidence_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}