Skip to content

Commit

Permalink
More updates to OpenAPI specs
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Apr 7, 2024
1 parent 4758353 commit 0682fa6
Showing 1 changed file with 48 additions and 11 deletions.
59 changes: 48 additions & 11 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ components:
the DID operation, such as the network where the DID operation should be executed.
See <a href="https://identity.foundation/did-registration/#options">https://identity.foundation/did-registration/#options</a>.
type: object
additionalProperties: { }
example:
network: testnet
secret:
Expand All @@ -216,7 +217,7 @@ components:
didDocument:
description: This input field contains the DID document to be used for the DID create operation. See
<a href="https://identity.foundation/did-registration/#diddocument">https://identity.foundation/did-registration/#diddocument</a>.
type: object
$ref: "#/components/schemas/DidDocument"
UpdateRequest:
description: Input fields for a DID update operation.
allOf:
Expand All @@ -243,7 +244,7 @@ components:
an incremental change (diff) to a DID document. See <a href="https://identity.foundation/did-registration/#diddocument">https://identity.foundation/did-registration/#diddocument</a>.
type: array
items:
type: object
$ref: "#/components/schemas/DidDocument"
DeactivateRequest:
description: Input fields for a DID deactivate operation.
allOf:
Expand All @@ -257,6 +258,27 @@ components:
DID deactivation operation.
type: string
example: did:indy:sovrin:WRfXPg8dantKVubE3HX8pw
DidDocument:
type: object
properties:
id:
$ref: "#/components/schemas/String"
example: did:indy:sovrin:WRfXPg8dantKVubE3HX8pw
verificationMethod:
$ref: "#/components/schemas/DidDocumentVerificationMethods"
service:
$ref: "#/components/schemas/DidDocumentServices"
additionalProperties: { }
DidDocumentVerificationMethods:
type: array
items:
type: object
additionalProperties: { }
DidDocumentServices:
type: array
items:
type: object
additionalProperties: { }
RegistrarState:
description: The state after a DID operation.
type: object
Expand Down Expand Up @@ -303,15 +325,15 @@ components:
wait: "#/components/schemas/DidStateWait"
properties:
state:
type: string
$ref: "#/components/schemas/String"
example: finished
did:
type: string
$ref: "#/components/schemas/String"
example: did:indy:sovrin:WRfXPg8dantKVubE3HX8pw
secret:
$ref: "#/components/schemas/DidStateSecret"
didDocument:
type: object
$ref: "#/components/schemas/DidDocument"
additionalProperties: { }
DidStateFinished:
description: This state indicates that the DID operation has been completed. See
Expand All @@ -337,6 +359,8 @@ components:
- $ref: "#/components/schemas/DidState"
- type: object
properties:
action:
type: string
verificationMethodTemplate:
type: array
items:
Expand Down Expand Up @@ -366,11 +390,7 @@ components:
type: object
properties:
verificationMethod:
type: array
items:
anyOf:
- $ref: "#/components/schemas/VerificationMethodPublicData"
- $ref: "#/components/schemas/VerificationMethodPrivateData"
$ref: "#/components/schemas/SecretVerificationMethod"
additionalProperties: { }
example:
verificationMethod:
Expand All @@ -381,6 +401,16 @@ components:
crv: Ed25519
d: NzJXR3A3TmdGUjFPcWRpOHpsdDdqUVE0MzRYUjBjTlE
x: jpIKKU2b77lNXKTNW2NGvw1GUMjU6v_l_tLJAH5uYz0
SecretVerificationMethod:
type: array
items:
oneOf:
- $ref: "#/components/schemas/VerificationMethodPublicData"
- $ref: "#/components/schemas/VerificationMethodPrivateData"
- type:
array
items:
$ref: "#/components/schemas/VerificationMethodTemplate"
RequestSecret:
description: This input field contains an object with DID controller keys
and other secrets needed for performing the DID operation. See
Expand All @@ -397,14 +427,16 @@ components:
type: object
additionalProperties:
$ref: "#/components/schemas/DecryptionResponse"
additionalProperties: { }
example:
seed: 72WGp7NgFR1Oqdi8zlt7jQQ434XR0cNQ
DidStateSecret:
description: This output field contains an object with DID controller keys and other secrets. See
https://identity.foundation/did-registration/#didstatesecret.
allOf:
- $ref: "#/components/schemas/Secret"
- type: object
example:
seed: 72WGp7NgFR1Oqdi8zlt7jQQ434XR0cNQ
SigningRequest:
description: A signing request, see https://identity.foundation/did-registration/#signing-request-set.
type: object
Expand Down Expand Up @@ -505,6 +537,7 @@ components:
type: string
publicKeyJwk:
type: object
additionalProperties: { }
publicKeyMultibase:
type: string
VerificationMethodPrivateData:
Expand All @@ -525,6 +558,7 @@ components:
type: string
privateKeyJwk:
type: object
additionalProperties: { }
privateKeyMultibase:
type: string
VerificationMethodTemplate:
Expand All @@ -543,3 +577,6 @@ components:
type: string
publicKeyJwk:
type: object
additionalProperties: { }
String:
type: string

0 comments on commit 0682fa6

Please sign in to comment.