From 203069d311fe5c19526f0289444c144c11f4f674 Mon Sep 17 00:00:00 2001 From: Lubos Racansky Date: Thu, 6 Jun 2024 13:58:58 +0200 Subject: [PATCH] Fix JSON (de)serialization of VerifyECDSASignatureResponse A follow-up to #1566 --- powerauth-client-model/pom.xml | 5 +++++ .../model/response/VerifyECDSASignatureResponse.java | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/powerauth-client-model/pom.xml b/powerauth-client-model/pom.xml index 50cc85b9b..b24e2f939 100644 --- a/powerauth-client-model/pom.xml +++ b/powerauth-client-model/pom.xml @@ -45,6 +45,11 @@ jackson-annotations + + com.fasterxml.jackson.core + jackson-databind + + io.swagger.core.v3 swagger-annotations-jakarta diff --git a/powerauth-client-model/src/main/java/com/wultra/security/powerauth/client/model/response/VerifyECDSASignatureResponse.java b/powerauth-client-model/src/main/java/com/wultra/security/powerauth/client/model/response/VerifyECDSASignatureResponse.java index d6c6371e6..d963c6e33 100644 --- a/powerauth-client-model/src/main/java/com/wultra/security/powerauth/client/model/response/VerifyECDSASignatureResponse.java +++ b/powerauth-client-model/src/main/java/com/wultra/security/powerauth/client/model/response/VerifyECDSASignatureResponse.java @@ -18,8 +18,8 @@ package com.wultra.security.powerauth.client.model.response; -import lombok.Builder; -import lombok.Data; +import lombok.*; +import lombok.extern.jackson.Jacksonized; /** * Model class representing response with ECDSA signature verification results. @@ -27,9 +27,10 @@ * @author Petr Dvorak, petr@wultra.com */ @Builder -@Data +@Getter @ToString @EqualsAndHashCode +@Jacksonized public class VerifyECDSASignatureResponse { - private boolean signatureValid; + private final boolean signatureValid; }