From aa0529e52c8a33183e2a88cc9c67e0c8cd41d2b7 Mon Sep 17 00:00:00 2001 From: Sandaru-Vithanage Date: Fri, 28 Jun 2024 18:31:54 +0530 Subject: [PATCH] Added Fixes in VRP Submission Flow --- .../validate/impl/VRPSubmissionPayloadValidator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/validate/impl/VRPSubmissionPayloadValidator.java b/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/validate/impl/VRPSubmissionPayloadValidator.java index 930dd0af..ed057c60 100644 --- a/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/validate/impl/VRPSubmissionPayloadValidator.java +++ b/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/validate/impl/VRPSubmissionPayloadValidator.java @@ -279,6 +279,9 @@ public static JSONObject validateInstruction(JSONObject submission, return ConsentValidatorUtil.getValidationResult(ErrorConstants.FIELD_INVALID, ErrorConstants.INSTRUCTION_REMITTANCE_INFO_NOT_JSON_ERROR); } + } else { + return ConsentValidatorUtil.getValidationResult(ErrorConstants.FIELD_MISSING, + ErrorConstants.INVALID_PARAMETER); } }