From 40858d87a18b3c855d874821beb5286add7954f7 Mon Sep 17 00:00:00 2001 From: Harsh Vardhan Date: Tue, 4 Jun 2024 15:31:11 +0530 Subject: [PATCH] [INJICERT-41] ignore format in draft13 CredentialResponse Signed-off-by: Harsh Vardhan --- .../main/java/io/mosip/certify/core/dto/CredentialResponse.java | 1 + .../java/io/mosip/certify/services/VCIssuanceServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/certify-core/src/main/java/io/mosip/certify/core/dto/CredentialResponse.java b/certify-core/src/main/java/io/mosip/certify/core/dto/CredentialResponse.java index da7015ec..cccf4aab 100644 --- a/certify-core/src/main/java/io/mosip/certify/core/dto/CredentialResponse.java +++ b/certify-core/src/main/java/io/mosip/certify/core/dto/CredentialResponse.java @@ -14,6 +14,7 @@ public class CredentialResponse { /** * JSON string denoting the format of the issued Credential. */ + @JsonInclude(JsonInclude.Include.NON_NULL) private String format; /** diff --git a/certify-service/src/main/java/io/mosip/certify/services/VCIssuanceServiceImpl.java b/certify-service/src/main/java/io/mosip/certify/services/VCIssuanceServiceImpl.java index e6db4874..d463f1de 100644 --- a/certify-service/src/main/java/io/mosip/certify/services/VCIssuanceServiceImpl.java +++ b/certify-service/src/main/java/io/mosip/certify/services/VCIssuanceServiceImpl.java @@ -246,6 +246,6 @@ private VCIssuanceTransaction createVCITransaction() { } public static boolean isV13OrAbove(String v) { - return v.equals(("v13")) || v.equals("latest"); + return v.equals("v13") || v.equals("latest"); } } \ No newline at end of file