{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-certificate-response-schema.json",
  "title": "CertificateResponse",
  "description": "Response model for an erasure certificate.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-openapi.json#/components/schemas/CertificateResponse",
  "properties": {
    "certificate_id": {
      "type": "string",
      "title": "Certificate Id"
    },
    "tenant_id": {
      "type": "string",
      "title": "Tenant Id"
    },
    "fact_ref": {
      "type": "integer",
      "title": "Fact Ref"
    },
    "fact_content_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fact Content Hash"
    },
    "coverage": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Coverage"
    },
    "scrubbed_decision_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scrubbed Decision Ids"
    },
    "erasure_requested_at": {
      "type": "string",
      "title": "Erasure Requested At"
    },
    "erasure_completed_at": {
      "type": "string",
      "title": "Erasure Completed At"
    },
    "legal_basis": {
      "type": "string",
      "title": "Legal Basis"
    },
    "requested_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Requested By"
    },
    "signature": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Signature"
    },
    "public_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Public Key"
    },
    "verified": {
      "type": "boolean",
      "title": "Verified",
      "default": false
    },
    "verification_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Verification Note"
    }
  },
  "type": "object",
  "required": [
    "certificate_id",
    "tenant_id",
    "fact_ref",
    "coverage",
    "erasure_requested_at",
    "erasure_completed_at",
    "legal_basis"
  ]
}