Skip to content

Commit

Permalink
fix swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Sep 23, 2024
1 parent e9b4bb0 commit 2522d16
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/controllers/api/did.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ export class DIDController {
* required: true
* - in: query
* name: type
* description: Set whether the StatusList2021 resource should be published to the ledger or not. If set to `false`, the StatusList2021 publisher should manually publish the resource.
* description: Select the type of accreditation to be issued.
* schema:
* type: string
* enum:
Expand Down
12 changes: 6 additions & 6 deletions src/static/swagger-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,17 +669,17 @@
]
},
"required": [
"issuerDid",
"subjectDid",
"schemas"
],
"example": {
"issuerDid": "did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0",
"subjectDid": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
"attributes": {
"gender": "male",
"name": "Bob"
},
"schemas": [
{
"type": "MuseumPassCredential",
"url": "https://resolver.cheqd.net/1.0/identifiers/did:cheqd:testnet:0a5b94d0-a417-48ed-a6f5-4abc9e95888d?resourceName=MuseumPassCredentialSchema&resourceType=JsonSchemaValidator2018"
}
],
"@context": [
"https://schema.org"
],
Expand Down
8 changes: 3 additions & 5 deletions src/types/swagger-api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,13 @@
* - verida
* - resource
* required:
* - issuerDid
* - subjectDid
* - schemas
* example:
* issuerDid: did:cheqd:testnet:7bf81a20-633c-4cc7-bc4a-5a45801005e0
* subjectDid: did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
* attributes:
* gender: male
* name: Bob
* schemas:
* - type: MuseumPassCredential
* url: https://resolver.cheqd.net/1.0/identifiers/did:cheqd:testnet:0a5b94d0-a417-48ed-a6f5-4abc9e95888d?resourceName=MuseumPassCredentialSchema&resourceType=JsonSchemaValidator2018
* '@context':
* - https://schema.org
* type:
Expand Down

0 comments on commit 2522d16

Please sign in to comment.