From 49e5e7f1cf7087e75f89393fcfa7e57926e8417c Mon Sep 17 00:00:00 2001 From: junaid7haque Date: Thu, 2 Apr 2026 09:57:23 -0400 Subject: [PATCH] Made it so the validator only accepts lowercase category names --- src/main/java/org/reactome/server/tools/IconValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/reactome/server/tools/IconValidator.java b/src/main/java/org/reactome/server/tools/IconValidator.java index ef8e08e..1f78e1d 100644 --- a/src/main/java/org/reactome/server/tools/IconValidator.java +++ b/src/main/java/org/reactome/server/tools/IconValidator.java @@ -102,7 +102,7 @@ private void validateXmlObj(File xmlFile, Icon icon) { System.out.println(countRef.incrementAndGet() + " / " + xmlNum + " xml files analysed (" + xmlFile.getName() + ")"); List categories = icon.getCategories(); for (String category : categories) { - if (!CATEGORIES.contains(category.toLowerCase())) { + if (!CATEGORIES.contains(category())) { errorLogger.error("[" + category + "] at the element \"category\" is not in the list CATEGORIES in the " + xmlFile.getName() + "."); error.incrementAndGet(); }