Package com.atlassian.oai.validator.util
Class ValidationReportUtils
java.lang.Object
com.atlassian.oai.validator.util.ValidationReportUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidreplaceReportOutput(com.fasterxml.jackson.databind.JsonNode reportInput, String searchRegex, String replaceString) Walk a JSON object representing a report and replace all instances of the search string in schema pointers or report paths with the given replacement value.
-
Method Details
-
replaceReportOutput
public static void replaceReportOutput(com.fasterxml.jackson.databind.JsonNode reportInput, String searchRegex, String replaceString) Walk a JSON object representing a report and replace all instances of the search string in schema pointers or report paths with the given replacement value. This mutates the provided report.- Parameters:
reportInput- A JsonNode representing a validation report from, to be rewritten in placesearchRegex- A valid regular expression to find in the reportreplaceString- The target string by which instances of the given pattern will be replaced
-