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.