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: $id: https://schema.beckn.io/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.beckn.io/Document/v2.0/attributes.yaml#/components/schemas/Document x-tags: - common