From 615bf80dbbf66ea52c4f92cae0f599b293d19582 Mon Sep 17 00:00:00 2001 From: rathnapandi Date: Fri, 22 Nov 2024 20:19:29 -0700 Subject: [PATCH] Format api config file --- .../src/main/java/com/axway/apim/config/GenerateTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java b/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java index 20ebae3a..53546f7b 100644 --- a/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java +++ b/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java @@ -121,7 +121,7 @@ public static int generate(String[] args) { objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); objectMapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); JsonNode jsonNode = objectMapper.convertValue(apiConfig, JsonNode.class); - objectMapper.writeValue(fileWriter, jsonNode); + objectMapper.writerWithDefaultPrettyPrinter().writeValue(fileWriter, jsonNode); LOG.info("Writing APIM CLI configuration file to : {}", params.getConfig()); } } catch (AppException e) {