Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow initiation of exchange to contain a VPR. #400

Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions exchanges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ paths:
"500":
description: Internal Error
post:
summary: Participate in an exchange. Posting an empty body will start the exchange or return what the exchange is expecting to complete the next step.
summary: Participate in an exchange. Posting an empty body will start the exchange or return
what the exchange is expecting to complete the next step. Posting a Verifiable Presentation Request
to start the exchange will result in either a Verifiable Presentation or a Verifiable
Presentation Request that conforms to the client's request, or a 4xx error.
msporny marked this conversation as resolved.
Show resolved Hide resolved
tags:
- Credentials
security:
Expand All @@ -148,9 +151,15 @@ paths:
content:
application/json:
schema:
properties:
verifiablePresentation:
$ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
oneOf:
- type: object
properties:
verifiablePresentationRequest:
$ref: "./components/VerifiablePresentationRequest.yml#/components/schemas/VerifiablePresentationRequest"
- type: object
properties:
verifiablePresentation:
$ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
responses:
"200":
description: Exchange progressed.
Expand Down