This commit is contained in:
Timothee Guerin 2021-11-16 11:58:29 -08:00
Родитель bd077b8628
Коммит 5557dae007
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -101,7 +101,7 @@ function validateParamsAreCompatible(
const currentParam = currentParamsMap.get(name);
if (currentParam === undefined) {
fail(
`Cannot merge older version with this spec. The parameternamed '${name}' for operation '${operationName}' is not found in the current spec.`,
`Cannot merge older version with this spec. The parameter named '${name}' for operation '${operationName}' is not found in the current spec.`,
["ModelerMerger/ParamRemoved"],
);
} else if (!areParamTheSame(currentParam, previousParam)) {
@ -124,7 +124,7 @@ function validateParamsAreCompatible(
}
}
return failed;
return !failed;
}
function groupParamsByName(params: Parameter[]): Map<string, Parameter> {