Update GeneratorApp code to prevent criterionIds/criteria being reported as a discrepancy in alignment.csv
Closed this issue · 1 comments
ASL-rmarshall commented
Add the following to fromIds
in GeneratorApp.java in the usdm-dictionary-generator repository to prevent criterionIds/criteria being reported as a discrepancy in alignment.csv:
if (name.contains("criterion") && name.endsWith("Ids")){
synonyms.add(name.substring(0, name.length() - "Ids".length()).replace("criterion", "criteria"));
}
ASL-rmarshall commented
Also added synonym to toIds