akshayrai commented on a change in pull request #4221: [TE] Code cleanup - Pull out all validation checks from translator into validator modules URL: https://github.com/apache/incubator-pinot/pull/4221#discussion_r285804473
########## File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlDetectionConfigTranslator.java ########## @@ -77,7 +81,7 @@ public YamlDetectionConfigTranslator withExistingDetectionConfig(DetectionConfig * Fill in common fields of detection config. Properties of the pipeline is filled by the subclass. */ public DetectionConfigDTO generateDetectionConfig() { - validateYAML(yamlConfig); + detectionValidator.validateConfig(yamlConfig); Review comment: Yes. I have already made these changes in the translator cleanup PR which I will raise soon. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org