Skip to content

Commit

Permalink
Add EvelopedVerifiablePresentation as possible Create Presentation re…
Browse files Browse the repository at this point in the history
…sponse
  • Loading branch information
jrhender authored and msporny committed Sep 3, 2024
1 parent f7e3268 commit f2ae3bd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
35 changes: 35 additions & 0 deletions components/EnvelopedVerifiablePresentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
openapi: 3.0.0
info:
version: "0.0.3-unstable"
title: VC API
description: This is an Experimental Open API Specification for the [VC Data Model](https://www.w3.org/TR/vc-data-model/).
license:
name: W3C Software and Document License
url: http://www.w3.org/Consortium/Legal/copyright-software.
contact:
name: GitHub Source Code
url: https://github.com/w3c-ccg/vc-api
paths:
components:
schemas:
EnvelopedVerifiablePresentation:
type: object
description: An object used to express an enveloped verifiable presentation.
properties:
"@context":
type: array
description: The JSON-LD context of the enveloped verifiable presentation.
items:
type: string
"id":
type: string
description: This MUST be a "data:" scheme URL [RFC2397] that expresses a secured verifiable presentation using an enveloping security scheme.
"type":
type: string
description: This MUST be EnvelopedVerifiablePresentation.
example:
{
"@context": "https://www.w3.org/ns/credentials/v2",
"id": "data:application/vp+jwt,eyJraWQiO...zhwGfQ",
"type": "EnvelopedVerifiablePresentation"
}
6 changes: 5 additions & 1 deletion holder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,11 @@ components:
type: object
properties:
verifiablePresentation:
$ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
type: object
description: A JSON-LD Verifiable Presentation with a proof.
oneOf:
- $ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
- $ref: "./components/EnvelopedVerifiablePresentation.yml#/components/schemas/EnvelopedVerifiablePresentation"
NotifyPresentationAvailableRequest:
type: object
properties:
Expand Down

0 comments on commit f2ae3bd

Please sign in to comment.