{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bancomat/main/json-schema/bancomat-chain-schema.json",
  "title": "Chain",
  "description": "Chain of documents",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bancomat-chain-api-openapi.yml#/components/schemas/Chain",
  "properties": {
    "fingerprint": {
      "$ref": "#/$defs/Fingerprint"
    },
    "targetFingerprint": {
      "$ref": "#/$defs/Fingerprint"
    },
    "targetType": {
      "$ref": "#/$defs/DocumentKindEnum"
    },
    "triggerFingerprint": {
      "$ref": "#/$defs/Fingerprint"
    },
    "triggerType": {
      "$ref": "#/$defs/DocumentKindEnum"
    }
  },
  "type": "object",
  "$defs": {
    "DocumentKindEnum": {
      "enum": [
        "bill",
        "bulk",
        "chain",
        "construction",
        "invoice",
        "pagopa",
        "transfer"
      ],
      "type": "string"
    },
    "Fingerprint": {
      "description": "Fingerprint del documento",
      "type": "string"
    }
  }
}