{
  "$id": "https://schema.nfh.global/Credential/v2.0",
  "x-iri": "https://schema.nfh.global/Credential/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A credential artifact that is either (a) a W3C Verifiable Credential (opaque JSON object) or (b) a document attachment reference requiring manual/offline verification.",
  "title": "Credential",
  "oneOf": [
    {
      "title": "W3C Verifiable Credential",
      "description": "A W3C Verifiable Credential as per the W3C VC Data Model. Treated as an opaque object at the schema layer.",
      "type": "object",
      "additionalProperties": true
    },
    {
      "title": "Document Credential",
      "description": "A document attachment used as a credential.",
      "$ref": "https://schema.nfh.global/Document/v2.0/schema.json"
    }
  ],
  "x-tags": [
    "common"
  ]
}
