From 2e28386769d4f8de1c86c2ad3d41b6144b1434be Mon Sep 17 00:00:00 2001 From: rathnapandi Date: Tue, 26 Nov 2024 09:44:19 -0700 Subject: [PATCH] fix - File extension is not added in api-config.json --- .../main/java/com/axway/apim/api/export/impl/ExportHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java b/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java index 85f80eea..58288887 100644 --- a/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java +++ b/modules/apis/src/main/java/com/axway/apim/api/export/impl/ExportHelper.java @@ -163,7 +163,7 @@ public void writeSpec(APISpecification apiDef, ExportAPI exportAPI, File localFo targetFile = localFolder.getCanonicalPath() + "/" + fileName + fileExtension; writeBytesToFile(apiDef.getApiSpecificationContent(), targetFile); } - exportAPI.getAPIDefinition().setApiSpecificationFile(fileName); + exportAPI.getAPIDefinition().setApiSpecificationFile(fileName + fileExtension); } } catch (IOException e) { throw new AppException("Can't save API-Definition locally to file: " + targetFile, ErrorCode.UNXPECTED_ERROR, e);