From 6f1ceabecc54f08609989d606ab191acb15582b6 Mon Sep 17 00:00:00 2001 From: DaevMithran Date: Mon, 23 Sep 2024 15:48:39 +0530 Subject: [PATCH] fix swagger --- src/static/swagger-api.json | 12 ++++++------ src/types/swagger-api-types.ts | 8 +++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/static/swagger-api.json b/src/static/swagger-api.json index 0349aec6..71f899c6 100644 --- a/src/static/swagger-api.json +++ b/src/static/swagger-api.json @@ -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" ], diff --git a/src/types/swagger-api-types.ts b/src/types/swagger-api-types.ts index 57f96428..8324ab06 100644 --- a/src/types/swagger-api-types.ts +++ b/src/types/swagger-api-types.ts @@ -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: