-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
components: | ||
schemas: | ||
CredentialDeleteTransaction: | ||
$id: CredentialDeleteTransaction | ||
allOf: | ||
- $ref: '../base.yaml#/components/schemas/BaseTransaction' | ||
type: object | ||
description: > | ||
A CredentialDelete transaction removes a credential from the ledger, effectively revoking it. | ||
Users may also want to delete an unwanted credential to reduce their reserve requirement. | ||
required: | ||
- CredentialType | ||
properties: | ||
CredentialType: | ||
type: string | ||
description: Arbitrary data defining the type of credential to delete. The minimum length is 1 byte and the maximum length is 256 bytes. | ||
Subject: | ||
type: string | ||
description: The subject of the credential to delete. If omitted, use the Account (sender of the transaction) as the subject of the credential. | ||
Issuer: | ||
type: string | ||
description: The issuer of the credential to delete. If omitted, use the Account (sender of the transaction) as the issuer of the credential. | ||
x-custom-validation: | ||
requireOneOf: | ||
- fields: | ||
- Subject | ||
- Issuer | ||
|
||
CredentialDeleteErrorCode: | ||
$id: CredentialDeleteErrorCode | ||
type: string | ||
description: Error codes for the CredentialDelete transaction. | ||
enum: | ||
- temDISABLED | ||
- temINVALID_ACCOUNT_ID | ||
- tecNO_PERMISSION | ||
- tecNO_ENTRY | ||
x-enum-descriptions: | ||
temDISABLED: The related amendment is not enabled. | ||
temINVALID_ACCOUNT_ID: A provided Subject or Issuer field is invalid. For example, it contains ACCOUNT_ZERO. | ||
tecNO_PERMISSION: The sender is neither the issuer nor subject of the credential, and the credential is not expired. | ||
tecNO_ENTRY: The specified credential does not exist in the ledger. |