Class ValidationReportUtils

java.lang.Object
com.atlassian.oai.validator.util.ValidationReportUtils

public class ValidationReportUtils extends Object
  • 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 place
      searchRegex - A valid regular expression to find in the report
      replaceString - The target string by which instances of the given pattern will be replaced