{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/writerslogic-com/json-schema/writerslogic-com-certificate-issue-request-schema.json",
  "title": "CertificateIssueRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-writerslogic-openapi.json#/components/schemas/CertificateIssueRequest",
  "type": "object",
  "required": [
    "documentHash",
    "forensicTriad"
  ],
  "properties": {
    "documentHash": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{64}$"
    },
    "documentName": {
      "type": "string",
      "maxLength": 255
    },
    "evidencePacketId": {
      "type": "string",
      "format": "uuid"
    },
    "warBlockHash": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{64}$"
    },
    "blockchainAnchorTx": {
      "type": "string",
      "maxLength": 128
    },
    "forensicTriad": {
      "type": "object",
      "required": [
        "delta",
        "epsilon",
        "phi",
        "overallScore",
        "verdict"
      ],
      "properties": {
        "delta": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "epsilon": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "phi": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "overallScore": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "verdict": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      }
    },
    "requestedValidity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 3650,
      "description": "Certificate validity in days"
    }
  }
}