Skip to content

Commit

Permalink
fix: Fix status update swagger (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran authored Aug 1, 2023
1 parent 9f775dd commit 4468c5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions src/controllers/revocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,15 @@ export class RevocationController {
* summary: Update an existing StatusList2021 credential status list.
* parameters:
* - in: query
* name: statusPurpose
* description: The purpose of the status list. Can be either revocation or suspension. Once this is set, it cannot be changed. A new status list must be created to change the purpose.
* name: statusAction
* description: The update action to be performed on the statuslist, can be revoke, suspend or reinstate
* required: true
* schema:
* type: string
* enum:
* - revocation
* - suspension
* - revoke
* - suspend
* - reinstate
* - in: query
* name: encrypted
* description: Define whether the status list is encrypted. The default is `false`, which means the DID-Linked Resource can be fetched and parsed publicly. Encrypted status lists can only be fetched if the payment conditions are satisfied. When publishing a new version, this should match the original property.
Expand Down
9 changes: 5 additions & 4 deletions src/static/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1037,14 +1037,15 @@
"parameters": [
{
"in": "query",
"name": "statusPurpose",
"description": "The purpose of the status list. Can be either revocation or suspension. Once this is set, it cannot be changed. A new status list must be created to change the purpose.",
"name": "statusAction",
"description": "The update action to be performed on the statuslist, can be revoke, suspend or reinstate",
"required": true,
"schema": {
"type": "string",
"enum": [
"revocation",
"suspension"
"revoke",
"suspend",
"reinstate"
]
}
},
Expand Down

0 comments on commit 4468c5f

Please sign in to comment.