From 53063284d0cea525bd30c564b2b034084cc73f5c Mon Sep 17 00:00:00 2001 From: hasuniea Date: Mon, 11 Jul 2016 17:50:56 +0530 Subject: [PATCH] fixing validation issue --- .../android/services/DeviceTypeConfigurationService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/DeviceTypeConfigurationService.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/DeviceTypeConfigurationService.java index 4aac40c53..780e4d116 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/DeviceTypeConfigurationService.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/DeviceTypeConfigurationService.java @@ -23,6 +23,7 @@ import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration import org.wso2.carbon.mdm.services.android.bean.AndroidPlatformConfiguration; import org.wso2.carbon.mdm.services.android.exception.AndroidAgentException; +import javax.validation.Valid; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; @@ -126,7 +127,7 @@ public interface DeviceTypeConfigurationService { Response updateConfiguration( @ApiParam(name = "configuration", value = "AndroidPlatformConfiguration") - AndroidPlatformConfiguration androidPlatformConfiguration); + @Valid AndroidPlatformConfiguration androidPlatformConfiguration); @GET @Path("license")