Skip to content

Commit

Permalink
Merge pull request #33 from 2mau/data-integrity
Browse files Browse the repository at this point in the history
feat: add Verifiable Credential Data Integrity 1.0 support
  • Loading branch information
nklomp authored Feb 2, 2024
2 parents 0648afe + 07095f7 commit 5a056f9
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion openapi/pex-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ components:
type: string
description: >
A directive is an instruction to the holder about what significance to give to the element it refers to.
* `required` - The item 'must' be presented
* `allowed` - The item 'can' be presented
* `disallowed` - The item 'must NOT' be presented
Expand Down Expand Up @@ -571,6 +571,12 @@ components:
$ref: '#/components/schemas/ldp_object'
ldp_vp:
$ref: '#/components/schemas/ldp_object'
di:
$ref: '#/components/schemas/di_object'
di_vc:
$ref: '#/components/schemas/di_object'
di_vp:
$ref: '#/components/schemas/di_object'
vc+sd-jwt:
$ref: '#/components/schemas/sd_jwt_object'

Expand Down Expand Up @@ -721,6 +727,29 @@ components:
- proof_type
additionalProperties: false

di_object:
type: object
description: Which Proof type is supported
properties:
proof_type:
type: array
description: List of names of the proof types
minItems: 1
items:
type: string
description: Name of the the proof type
cryptosuite:
type: array
description: The data integrity cryptosuites
minItems: 1
items:
type: string
description: List of names of the data integrity cryptosuites
required:
- proof_type
- cryptosuite
additionalProperties: false

one_of_number_string:
title: One of number or string
oneOf:
Expand Down

0 comments on commit 5a056f9

Please sign in to comment.