Skip to content

Commit

Permalink
Remove ChallengeVerificationMetadata from responses..
Browse files Browse the repository at this point in the history
  • Loading branch information
wes-smith committed Mar 8, 2024
1 parent d51894e commit 5956b61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 46 deletions.
31 changes: 0 additions & 31 deletions components/Challenge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,35 +34,4 @@ components:
uses:
type: string
description: The number of times options.challenge has been used
VerificationResultWithChallengeMetadata:
type: object
additionalProperties: false
description: Object summarizing a verification
properties:
checks:
type: array
description: The checks performed
items:
type: string
warnings:
type: array
description: Warnings
items:
type: string
errors:
type: array
description: Errors
items:
type: string
ChallengeVerificationMetadata:
type: object
additionalProperties: false
description: Metadata about the verification of options.challenge.
properties:
verified:
type: string
description: Whether verification of the challenge was successful
uses:
type: string
description: The number of times options.challenge has been used

11 changes: 1 addition & 10 deletions holder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/ProvePresentationResponse"
- $ref: "#/components/schemas/ProvePresentationResponseWithChallengeVerificationMetadata"
$ref: "#/components/schemas/ProvePresentationResponse"
"400":
description: invalid input!
"500":
Expand Down Expand Up @@ -503,13 +501,6 @@ components:
properties:
verifiablePresentation:
$ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
ProvePresentationResponseWithChallengeVerificationMetadata:
type: object
properties:
verifiablePresentation:
$ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
ChallengeVerificationMetadata:
$ref: "./components/Challenge.yml#/components/schemas/ChallengeVerificationMetadata"
NotifyPresentationAvailableRequest:
type: object
properties:
Expand Down
7 changes: 2 additions & 5 deletions verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ paths:
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/VerifyPresentationResponse"
- $ref: "#/components/schemas/VerifyPresentationResponseWithChallengeMetadata"
$ref: "#/components/schemas/VerifyPresentationResponse"

"400":
description: Invalid or malformed input
"413":
Expand Down Expand Up @@ -118,7 +117,5 @@ components:
$ref: "./components/Presentation.yml#/components/schemas/Presentation"
VerifyPresentationResponse:
$ref: "./components/VerificationResult.yml#/components/schemas/VerificationResult"
VerifyPresentationResponseWithChallengeMetadata:
$ref: "./components/Challenge.yml#/components/schemas/VerificationResultWithChallengeMetadata"
CreateChallengeResponse:
$ref: "./components/Challenge.yml#/components/schemas/CreateChallengeResult"

0 comments on commit 5956b61

Please sign in to comment.