Skip to content

Commit

Permalink
replaceAll {apiVersion} v2 #TASK-5914
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Jan 14, 2025
1 parent 8eb5d6b commit 77209df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public String openApi(@ApiParam(value = "List of categories to get API from") @Q
String swaggerJson ="ERROR: Swagger could not be generated";
ObjectMapper mapper = new ObjectMapper();
try {
swaggerJson = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(swagger).replaceAll("{apiVersion}", "v2");
swaggerJson = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(swagger).replace("{apiVersion}", "v2");
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 77209df

Please sign in to comment.