Skip to content

Commit

Permalink
Fix to save advance configs under x-wso2 production and sandbox endpo…
Browse files Browse the repository at this point in the history
…ints.

Fixes wso2/api-manager#2280
  • Loading branch information
RusJaI committed Dec 11, 2023
1 parent 148ddf4 commit e0eec4b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,8 @@ private static void prepareForUpdateSwagger(String apiId, APIDefinitionValidatio
String existingEndpointConfigString = existingAPI.getEndpointConfig();

if (StringUtils.isNotEmpty(existingEndpointConfigString)) { //check if endpoints are configured
JSONObject existingEndpointConfigJson = (JSONObject) new JSONParser().parse(existingEndpointConfigString);
JSONObject existingEndpointConfigJson = (JSONObject) new JSONParser()
.parse(existingEndpointConfigString);
if (newProductionEndpointJson != null) {
if (existingEndpointConfigJson.get(APIConstants.ENDPOINT_PRODUCTION_ENDPOINTS) != null) {
//put as a value under the ENDPOINT_PRODUCTION_ENDPOINTS key
Expand Down

0 comments on commit e0eec4b

Please sign in to comment.