From 4810467a939e34bb79aa3aec02c7e82f83588204 Mon Sep 17 00:00:00 2001 From: goncalo-frade-iohk Date: Thu, 21 Nov 2024 12:24:43 +0000 Subject: [PATCH] fix: bug reported in issue 216 https://github.com/hyperledger/identus-edge-agent-sdk-kmp/issues/216 --- .../edgeagent/protocols/issueCredential/CredentialPreview.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/protocols/issueCredential/CredentialPreview.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/protocols/issueCredential/CredentialPreview.kt index 2c6244bc4..edfabe9eb 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/protocols/issueCredential/CredentialPreview.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/protocols/issueCredential/CredentialPreview.kt @@ -16,6 +16,7 @@ data class CredentialPreview constructor( @SerialName("schema_id") @EncodeDefault + val schemaIds: List? = null, val schemaId: String? = null, val body: Body ) { @@ -27,7 +28,7 @@ constructor( * @param schemaId The ID of the schema associated with the credential. Defaults to `null` if not provided. * @param attributes An array of attributes to include in the credential preview. */ - constructor(schemaId: String? = null, attributes: Array) : this(schemaId, Body(attributes)) + constructor(schemaIds: List? = null, schemaId: String? = null, attributes: Array) : this(schemaIds, schemaId, Body(attributes)) /** * Compares this [CredentialPreview] object to the specified [other] object for equality.