Skip to content

Commit

Permalink
fix: bug reported in issue 216
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Nov 21, 2024
1 parent 332a4d5 commit 4810467
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ data class CredentialPreview
constructor(
@SerialName("schema_id")
@EncodeDefault
val schemaIds: List<String>? = null,
val schemaId: String? = null,
val body: Body
) {
Expand All @@ -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<Attribute>) : this(schemaId, Body(attributes))
constructor(schemaIds: List<String>? = null, schemaId: String? = null, attributes: Array<Attribute>) : this(schemaIds, schemaId, Body(attributes))

/**
* Compares this [CredentialPreview] object to the specified [other] object for equality.
Expand Down

0 comments on commit 4810467

Please sign in to comment.