Skip to content

Commit e1ca014

Browse files
authored
Initialize optional values in vp_formats_supported (#423)
1 parent 5777357 commit e1ca014

File tree

1 file changed

+4
-4
lines changed
  • src/main/kotlin/eu/europa/ec/eudi/openid4vp

1 file changed

+4
-4
lines changed

src/main/kotlin/eu/europa/ec/eudi/openid4vp/Types.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ data class VpFormatsSupported(
332332
@Serializable
333333
data class SdJwtVc(
334334
@SerialName(OpenId4VPSpec.SD_JWT_VC_SD_JWT_ALGORITHMS)
335-
val sdJwtAlgorithms: List<JWSAlgorithm>?,
335+
val sdJwtAlgorithms: List<JWSAlgorithm>? = null,
336336

337337
@SerialName(OpenId4VPSpec.SD_JWT_VC_KB_JWT_ALGORITHMS)
338-
val kbJwtAlgorithms: List<JWSAlgorithm>?,
338+
val kbJwtAlgorithms: List<JWSAlgorithm>? = null,
339339

340340
) : java.io.Serializable {
341341
init {
@@ -359,8 +359,8 @@ data class VpFormatsSupported(
359359

360360
@Serializable
361361
data class MsoMdoc(
362-
@SerialName(OpenId4VPSpec.MSO_MDOC_ISSUERAUTH_ALGORITHMS) val issuerAuthAlgorithms: List<CoseAlgorithm>?,
363-
@SerialName(OpenId4VPSpec.MSO_MDOC_DEVICEAUTH_ALGORITHMS) val deviceAuthAlgorithms: List<CoseAlgorithm>?,
362+
@SerialName(OpenId4VPSpec.MSO_MDOC_ISSUERAUTH_ALGORITHMS) val issuerAuthAlgorithms: List<CoseAlgorithm>? = null,
363+
@SerialName(OpenId4VPSpec.MSO_MDOC_DEVICEAUTH_ALGORITHMS) val deviceAuthAlgorithms: List<CoseAlgorithm>? = null,
364364
) : java.io.Serializable {
365365
init {
366366
issuerAuthAlgorithms?.let {

0 commit comments

Comments
 (0)