Skip to content

Commit

Permalink
updated fmu validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Feb 8, 2024
1 parent c053e88 commit d0ac3a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.intocps.maestro.framework.fmi2;

import maestro.MaestroCheck;
import maestro.MaestroCheckFMI2;
import maestro.OnFailError;
import org.intocps.fmi.IFmu;
import org.intocps.maestro.ast.LexToken;
Expand Down Expand Up @@ -32,7 +33,7 @@ public boolean validate(String id, URI path, IErrorReporter reporter) {
try {
logger.trace("Validating: {} at {}", id, path);
IFmu fmu = FmuFactory.create(null, path);
MaestroCheck checker = new MaestroCheck();
MaestroCheckFMI2 checker = new MaestroCheckFMI2();
List<OnFailError> onFailErrors = checker.check(fmu.getModelDescription());

onFailErrors.forEach(onFailError -> {
Expand Down

0 comments on commit d0ac3a9

Please sign in to comment.