openapi: 3.1.1
info:
  title: Credential
  version: 2.0.0
  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.
  license:
    name: CC-BY-NC-SA 4.0 International
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    Credential:
      x-iri: https://schema.nfh.global/Credential/v2.0
      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
        required:
        - "@context"
        - type
      - title: Document Credential
        description: A document attachment used as a credential.
        $ref: https://schema.nfh.global/Document/v2.0/attributes.yaml#/components/schemas/Document
      x-tags:
      - common
